common: compile libconsumer, libust-consumer, libkernel-consumer as C++
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.h
index 004becb0f0feea1f93694d8ab21bc7a778322b25..71a33b73f42316799623bd70cdec35eabff73f06 100644 (file)
 #include <stdbool.h>
 #include <common/consumer/consumer.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int lttng_kconsumer_take_snapshot(struct lttng_consumer_stream *stream);
 int lttng_kconsumer_sample_snapshot_positions(
                struct lttng_consumer_stream *stream);
@@ -27,4 +31,8 @@ int lttng_kconsumer_data_pending(struct lttng_consumer_stream *stream);
 enum sync_metadata_status lttng_kconsumer_sync_metadata(
                struct lttng_consumer_stream *metadata);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _LTTNG_KCONSUMER_H */
This page took 0.023137 seconds and 4 git commands to generate.