Fix: C++ support to API header files
[babeltrace.git] / include / babeltrace / context.h
index ee2a724aaebdb43903758e7e9e091613496ff738..bc7de3a0e84c5de89967cae08cc020d7e18145ac 100644 (file)
 #include <unistd.h>
 #include <babeltrace/format.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* struct bt_context is opaque to the user */
 struct bt_context;
 struct stream_pos;
@@ -105,4 +109,8 @@ void bt_context_put(struct bt_context *ctx);
  */
 struct bt_context *bt_ctf_event_get_context(const struct bt_ctf_event *event);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _BABELTRACE_CONTEXT_H */
This page took 0.023101 seconds and 4 git commands to generate.