From eb6a78be524aaee70fca55b86a7b065763591178 Mon Sep 17 00:00:00 2001 From: fulup Date: Thu, 10 Aug 2017 17:37:24 +0200 Subject: Work in Progress --- Controler-afb/ctl-events.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Controler-afb/ctl-events.c') diff --git a/Controler-afb/ctl-events.c b/Controler-afb/ctl-events.c index f444848..6f710e3 100644 --- a/Controler-afb/ctl-events.c +++ b/Controler-afb/ctl-events.c @@ -23,6 +23,22 @@ #include "ctl-binding.h" +#define DEFAULT_PAUSE_DELAY 3000 +#define DEFAULT_TEST_COUNT 1 +typedef int (*timerCallbackT)(void *context); +typedef struct { + int value; + const char *label; +} AutoTestCtxT; + +typedef struct TimerHandleS { + int count; + int delay; + AutoTestCtxT *context; + timerCallbackT callback; + sd_event_source *evtSource; +} TimerHandleT; + static afb_event afbevt; STATIC int TimerNext (sd_event_source* source, uint64_t timer, void* handle) { -- cgit 1.2.3-korg