common: compile libconsumer, libust-consumer, libkernel-consumer as C++
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.h
index b397b9cd33e6951cae3280c6478f034df90de82a..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);
-ssize_t lttng_kconsumer_read_subbuffer(struct lttng_consumer_stream *stream,
-               struct lttng_consumer_local_data *ctx);
 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.023644 seconds and 4 git commands to generate.