summaryrefslogtreecommitdiffstats
path: root/filescan-utils.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-08-31 12:48:47 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-08-31 12:48:47 +0200
commitbe1205fd4ab6bd20dd9bc44ed63c35d999ece761 (patch)
treede6bc2715f317290594df841cdbcd38975092049 /filescan-utils.h
parentb8cab6ea48484aa8ff3a64d7e0ec8b25c3369f99 (diff)
Include afb-utilities from C++ easily
Change-Id: Ic1c815b412d372a418c2faa51fea451c9100693c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'filescan-utils.h')
-rw-r--r--filescan-utils.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/filescan-utils.h b/filescan-utils.h
index 3c091b7..b6111e2 100644
--- a/filescan-utils.h
+++ b/filescan-utils.h
@@ -22,6 +22,10 @@
#ifndef FILESCAN_UTILS_H
#define FILESCAN_UTILS_H
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
#define AFB_BINDING_VERSION 2
#include <afb/afb-binding.h>
#include <json-c/json.h>
@@ -45,5 +49,8 @@ PUBLIC const char *GetMidleName(const char*name);
PUBLIC const char *GetBinderName();
PUBLIC json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode, const char *pre, const char *ext);
-#endif /* FILESCAN_UTILS_H */
+#ifdef __cplusplus
+ }
+#endif
+#endif /* FILESCAN_UTILS_H */