common: compile libconsumer, libust-consumer, libkernel-consumer as C++
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.h
index 07b51421dce7224dd5f851bcf540c43ea1f4854f..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);
 int lttng_kconsumer_get_produced_snapshot(struct lttng_consumer_stream *stream,
-        unsigned long *pos);
+               unsigned long *pos);
 int lttng_kconsumer_get_consumed_snapshot(struct lttng_consumer_stream *stream,
                unsigned long *pos);
 int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
@@ -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.023734 seconds and 4 git commands to generate.