aboutsummaryrefslogtreecommitdiffstats
path: root/wrap-json.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 /wrap-json.h
parentb8cab6ea48484aa8ff3a64d7e0ec8b25c3369f99 (diff)
Include afb-utilities from C++ easily
Change-Id: Ic1c815b412d372a418c2faa51fea451c9100693c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'wrap-json.h')
-rw-r--r--wrap-json.h7
1 files changed, 7 insertions, 0 deletions
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