home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support arbitrary parameter passing to sensor function
[khatus.git]
/
x5
/
khatus_lib_sensor.h
diff --git
a/x5/khatus_lib_sensor.h
b/x5/khatus_lib_sensor.h
index
992352c
..
3699179
100644
(file)
--- a/
x5/khatus_lib_sensor.h
+++ b/
x5/khatus_lib_sensor.h
@@
-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.