X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.h;h=b4c9aeafd135002c189a1c27e50a5c29a9cc53b2;hb=1d1a276c180aae7eca393b5a1c961cdfc4bddc84;hp=bf87609f3f1aea428128895cdab7ba20cf1f8568;hpb=73811eccc9599ebf62e5f5bee49039cecc25c3eb;p=lttng-tools.git diff --git a/src/common/consumer.h b/src/common/consumer.h index bf87609f3..b4c9aeafd 100644 --- a/src/common/consumer.h +++ b/src/common/consumer.h @@ -85,6 +85,8 @@ enum consumer_channel_type { CONSUMER_CHANNEL_TYPE_DATA = 1, }; +extern struct lttng_consumer_global_data consumer_data; + struct stream_list { struct cds_list_head head; unsigned int count; @@ -458,7 +460,7 @@ struct lttng_consumer_stream *consumer_allocate_stream(uint64_t channel_key, const char *channel_name, uid_t uid, gid_t gid, - int relayd_id, + uint64_t relayd_id, uint64_t session_id, int cpu, int *alloc_ret, @@ -469,7 +471,7 @@ struct lttng_consumer_channel *consumer_allocate_channel(uint64_t key, const char *name, uid_t uid, gid_t gid, - int relayd_id, + uint64_t relayd_id, enum lttng_event_output output, uint64_t tracefile_size, uint64_t tracefile_count); @@ -531,5 +533,6 @@ int consumer_send_status_channel(int sock, struct lttng_consumer_channel *channel); void notify_thread_del_channel(struct lttng_consumer_local_data *ctx, uint64_t key); +void consumer_destroy_relayd(struct consumer_relayd_sock_pair *relayd); #endif /* LIB_CONSUMER_H */