X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Flttng-consumer.h;h=256293b811001f18fe6c3fc865749eed16d7b689;hp=1a6afc22aedd2e8a89d3ed852b43a0b472d62689;hb=d41f73b7cb50d57974bd1fad22342abaf9718566;hpb=5485f82241185e6703fe343704c48d2a6d6a4b46 diff --git a/include/lttng/lttng-consumer.h b/include/lttng/lttng-consumer.h index 1a6afc22a..256293b81 100644 --- a/include/lttng/lttng-consumer.h +++ b/include/lttng/lttng-consumer.h @@ -126,7 +126,8 @@ struct lttng_consumer_stream { */ struct lttng_consumer_local_data { /* function to call when data is available on a buffer */ - int (*on_buffer_ready)(struct lttng_consumer_stream *stream); + int (*on_buffer_ready)(struct lttng_consumer_stream *stream, + struct lttng_consumer_local_data *ctx); /* * function to call when we receive a new channel, it receives a * newly allocated channel, depending on the return code of this @@ -277,7 +278,8 @@ int consumer_add_channel(struct lttng_consumer_channel *channel); extern struct lttng_consumer_local_data *lttng_consumer_create( enum lttng_consumer_type type, - int (*buffer_ready)(struct lttng_consumer_stream *stream), + int (*buffer_ready)(struct lttng_consumer_stream *stream, + struct lttng_consumer_local_data *ctx), int (*recv_channel)(struct lttng_consumer_channel *channel), int (*recv_stream)(struct lttng_consumer_stream *stream), int (*update_stream)(int sessiond_key, uint32_t state)); @@ -299,4 +301,8 @@ extern void *lttng_consumer_thread_receive_fds(void *data); extern int lttng_consumer_recv_cmd(struct lttng_consumer_local_data *ctx, int sock, struct pollfd *consumer_sockpoll); +int lttng_consumer_read_subbuffer(struct lttng_consumer_stream *stream, + struct lttng_consumer_local_data *ctx); +int lttng_consumer_on_recv_stream(struct lttng_consumer_stream *stream); + #endif /* _LTTNG_CONSUMER_H */