aboutsummaryrefslogtreecommitdiffstats
path: root/afb-timer.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-10timer: Fix stopping a running timericefish_8.99.5icefish/8.99.58.99.5Romain Forlot1-18/+13
This fix a bug where using 1 don't stop the timer to trigger and now TimerStop really stop the timer... sd_event_source_unref only decrement the ref counter of the sd_event_source. If we want to stop returning -1 in the callback will make sure we effectively stop the timer instead of only decrement the ref counter. Bug-AGL: SPEC-3073 Change-Id: I4619ff1695c398a7c9683b58bd193b8c21b9abb1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-01-04Call the freeCB function a manual timer stop callRomain Forlot1-1/+1
This invokes the freeCB callback function which is in charge of release allocated resources in the timer callback. This was only called on a normal stop of a timer not when called manually by TimerEvtStop. Change-Id: I750a62ee0662b905107f53d070add1e8ccba77f8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-01-04Little code cleaning.Romain Forlot1-15/+6
Rename apiHandle to api. Add a missing parameter to QAfbWebsocketClient::call function comment. Change-Id: I6fb1acd7357fbea3132cd429e9477a1a0b8a4f43 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-17Static lib: pass afb-helpers to a static libraryguppy_6.99.3guppy/6.99.36.99.3Clément Bénier1-0/+103
- add afb-timer in helpers: rename ctl-timer from ctl-utilities into afb-timer - use the GNUinstalldirs module to set the destination directories. Change-Id: Ic88105d140edabcc96b091fb23f215db11ccb8c6 Signed-off-by: Clément Bénier <clement.benier@iot.bzh> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>