Support arbitrary parameter passing to sensor function
[khatus.git] / x5 / khatus_lib_sensor.h
index 992352c..3699179 100644 (file)
@@ -1,3 +1,12 @@
 #define END_OF_MESSAGE '\n'
 #define END_OF_MESSAGE '\n'
+#define SENSOR_FUN_T  int (*)(char *, void *)
+#define SENSOR_PARAMS_T  void *
 
 
-void loop(struct timespec *interval, char *fifo, char *buf, int fun(char *));
+void
+loop(
+    struct timespec *interval,
+    char *fifo,
+    char *buf,
+    SENSOR_FUN_T,
+    SENSOR_PARAMS_T
+);
This page took 0.019738 seconds and 4 git commands to generate.