diff options
-rw-r--r-- | filescan-utils.h | 9 | ||||
-rw-r--r-- | wrap-json.h | 7 |
2 files changed, 15 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 */ diff --git a/wrap-json.h b/wrap-json.h index cb2d0bf..f5e6996 100644 --- a/wrap-json.h +++ b/wrap-json.h @@ -18,6 +18,10 @@ #pragma once +#ifdef __cplusplus + extern "C" { +#endif + #include <stdarg.h> #include <json-c/json.h> @@ -44,3 +48,6 @@ extern void wrap_json_object_for_all(struct json_object *object, void (*callback extern void wrap_json_optobject_for_all(struct json_object *object, void (*callback)(void*,struct json_object*,const char*), void *closure); extern void wrap_json_for_all(struct json_object *object, void (*callback)(void*,struct json_object*,const char*), void *closure); +#ifdef __cplusplus + } +#endif |