summaryrefslogtreecommitdiffstats
path: root/controller/ctl-timer.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-12 00:29:28 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commitd663f702c0e4fa562783504a483dce8f362d628e (patch)
treefdb656d0467a935aa6790dd9e05d3e373606a3e1 /controller/ctl-timer.c
parent75cfbf3d0206f12422091e6479c508c69445bf4a (diff)
Progression on config parsing.
Change-Id: Idd8d8987ccabef381f6d79c1d508930a2d4bae3c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'controller/ctl-timer.c')
-rw-r--r--controller/ctl-timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/controller/ctl-timer.c b/controller/ctl-timer.c
index 1de6f99..2d99472 100644
--- a/controller/ctl-timer.c
+++ b/controller/ctl-timer.c
@@ -61,14 +61,14 @@ OnErrorExit:
return -1;
}
-PUBLIC void TimerEvtStop(TimerHandleT *timerHandle) {
+void TimerEvtStop(TimerHandleT *timerHandle) {
sd_event_source_unref(timerHandle->evtSource);
free (timerHandle);
}
-PUBLIC void TimerEvtStart(TimerHandleT *timerHandle, timerCallbackT callback, void *context) {
+void TimerEvtStart(TimerHandleT *timerHandle, timerCallbackT callback, void *context) {
uint64_t usec;
// populate CB handle
@@ -80,13 +80,13 @@ PUBLIC void TimerEvtStart(TimerHandleT *timerHandle, timerCallbackT callback, vo
sd_event_add_time(afb_daemon_get_event_loop(), &timerHandle->evtSource, CLOCK_MONOTONIC, usec+timerHandle->delay*1000, 250, TimerNext, timerHandle);
}
-PUBLIC afb_event TimerEvtGet(void) {
+afb_event TimerEvtGet(void) {
return afbevt;
}
// Create Binding Event at Init
-PUBLIC int TimerEvtInit () {
+int TimerEvtInit () {
// create binder event to send test pause/resume
afbevt = afb_daemon_make_event("control");