common: compile libconsumer, libust-consumer, libkernel-consumer as C++
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.h
index 48c787a462424bd5740e8cfd66eaf5308b00eea3..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,
                int sock, struct pollfd *consumer_sockpoll);
 int lttng_kconsumer_on_recv_stream(struct lttng_consumer_stream *stream);
 int lttng_kconsumer_data_pending(struct lttng_consumer_stream *stream);
-int lttng_kconsumer_sync_metadata(struct lttng_consumer_stream *metadata);
+enum sync_metadata_status lttng_kconsumer_sync_metadata(
+               struct lttng_consumer_stream *metadata);
+
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* _LTTNG_KCONSUMER_H */
This page took 0.023452 seconds and 4 git commands to generate.