aboutsummaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-timer.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-11-03 15:42:50 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:54 +0100
commitbbc7fc4588ba23bdcdb585f340d83dbbf30b994f (patch)
treeb806b588e544d27d3a76110899cdbdc90f567562 /ctl-lib/ctl-timer.h
parent25b02ddcd940fbf2f19d0012309d7945c389861c (diff)
Correctly export symbols for C++
Change-Id: I87eb6b5cc7208caaabbc3c2f3b6636d600c60370 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-timer.h')
-rw-r--r--ctl-lib/ctl-timer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ctl-lib/ctl-timer.h b/ctl-lib/ctl-timer.h
index 333f172..4b06bdf 100644
--- a/ctl-lib/ctl-timer.h
+++ b/ctl-lib/ctl-timer.h
@@ -19,6 +19,10 @@
#ifndef CTL_TIMER_INCLUDE
#define CTL_TIMER_INCLUDE
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <systemd/sd-event.h>
// ctl-timer.c
@@ -42,4 +46,8 @@ PUBLIC int TimerEvtInit (AFB_ApiT apiHandle);
PUBLIC void TimerEvtStart(AFB_ApiT apiHandle, TimerHandleT *timerHandle, timerCallbackT callback, void *context);
PUBLIC void TimerEvtStop(TimerHandleT *timerHandle);
+#ifdef __cplusplus
+}
+#endif
+
#endif // CTL_TIMER_INCLUDE