aboutsummaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-timer.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-10-02 14:59:25 +0200
committerClément Bénier <clement.benier@iot.bzh>2018-10-05 14:36:45 +0200
commit1d757228d9acb1d09ce966fe68b87fc067b9d9af (patch)
treef8efe1d90b570f6dd10ff6e09634fc58a4d3e527 /ctl-lib/ctl-timer.h
parent625ce776e0e9ed869da90659eb988ee32de4cf3b (diff)
Get rid of the support of API version 2 and DYNAPI
Change-Id: I24d99de6fe5d1d639392315926ca23f60a137fc4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-timer.h')
-rw-r--r--ctl-lib/ctl-timer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ctl-lib/ctl-timer.h b/ctl-lib/ctl-timer.h
index a65a906..ffc8f82 100644
--- a/ctl-lib/ctl-timer.h
+++ b/ctl-lib/ctl-timer.h
@@ -35,18 +35,18 @@ typedef struct TimerHandleS {
const char*uid;
void *context;
sd_event_source *evtSource;
- AFB_ApiT api;
+ afb_api_t api;
int (*callback) (struct TimerHandleS *handle);
int (*freeCB) (void *context) ;
} TimerHandleT;
typedef int (*timerCallbackT)(TimerHandleT *context);
-extern int TimerEvtInit (AFB_ApiT apiHandle);
-extern void TimerEvtStart(AFB_ApiT apiHandle, TimerHandleT *timerHandle, timerCallbackT callback, void *context);
+extern int TimerEvtInit (afb_api_t apiHandle);
+extern void TimerEvtStart(afb_api_t apiHandle, TimerHandleT *timerHandle, timerCallbackT callback, void *context);
extern void TimerEvtStop(TimerHandleT *timerHandle);
-extern uint64_t LockWait(AFB_ApiT apiHandle, uint64_t utimeout);
+extern uint64_t LockWait(afb_api_t apiHandle, uint64_t utimeout);
#ifdef __cplusplus
}
#endif