aboutsummaryrefslogtreecommitdiffstats
path: root/Controler-afb/ctl-events.c
diff options
context:
space:
mode:
Diffstat (limited to 'Controler-afb/ctl-events.c')
-rw-r--r--Controler-afb/ctl-events.c16
1 files changed, 16 insertions, 0 deletions
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) {