diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-12 18:18:01 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-17 12:30:55 +0200 |
commit | 88892db78f2f5b047923af5b36169052c96bc3c0 (patch) | |
tree | d0e6a7f5cfcc9824c0990b5dc6457892734ed62a /ctl-lib/ctl-timer.h | |
parent | 440be0984f16562fdf321c770d65787ecea0e36d (diff) |
Use prefix variable to find controller's plugins
Prefix is the most reliable variable to find files or
variables for a controller, so this lets you access it
wherever it is needed without using global hardcoded
variables.
This helps to search for controller's plugins in several
locations depending on environment variables and hardcoded
variables (CONTROL_PLUGIN_PATH, CONTROL_CONFIG_PATH).
This implies also a change a LUA interpreter loading step to
correctly set the package.path variables with the environment
variables, too.
Correct the missing 'extern' in function declarations.
Depends-On: Ic448ff017e6158bec05895d63688b8968b5c6434
Change-Id: I0ad19242612559d1f4b66b6f9af9e7032d4675a8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-timer.h')
-rw-r--r-- | ctl-lib/ctl-timer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ctl-lib/ctl-timer.h b/ctl-lib/ctl-timer.h index 71f87af..a65a906 100644 --- a/ctl-lib/ctl-timer.h +++ b/ctl-lib/ctl-timer.h @@ -42,11 +42,11 @@ typedef struct TimerHandleS { typedef int (*timerCallbackT)(TimerHandleT *context); -int TimerEvtInit (AFB_ApiT apiHandle); -void TimerEvtStart(AFB_ApiT apiHandle, TimerHandleT *timerHandle, timerCallbackT callback, void *context); -void TimerEvtStop(TimerHandleT *timerHandle); +extern int TimerEvtInit (AFB_ApiT apiHandle); +extern void TimerEvtStart(AFB_ApiT apiHandle, TimerHandleT *timerHandle, timerCallbackT callback, void *context); +extern void TimerEvtStop(TimerHandleT *timerHandle); -uint64_t LockWait(AFB_ApiT apiHandle, uint64_t utimeout); +extern uint64_t LockWait(AFB_ApiT apiHandle, uint64_t utimeout); #ifdef __cplusplus } #endif |