- char *domain_path, bool is_metadata_channel, uint64_t new_chunk_id,
- bool *rotate_pending_relay);
-int consumer_rotate_rename(struct consumer_socket *socket, uint64_t session_id,
- const struct consumer_output *output, const char *old_path,
- const char *new_path, uid_t uid, gid_t gid);
-int consumer_mkdir(struct consumer_socket *socket, uint64_t session_id,
- const struct consumer_output *output, const char *path,
- uid_t uid, gid_t gid);
+ bool is_metadata_channel);
+int consumer_init(struct consumer_socket *socket,
+ const lttng_uuid sessiond_uuid);
+
+int consumer_create_trace_chunk(struct consumer_socket *socket,
+ uint64_t relayd_id, uint64_t session_id,
+ struct lttng_trace_chunk *chunk);
+int consumer_close_trace_chunk(struct consumer_socket *socket,
+ uint64_t relayd_id, uint64_t session_id,
+ struct lttng_trace_chunk *chunk);
+int consumer_trace_chunk_exists(struct consumer_socket *socket,
+ uint64_t relayd_id, uint64_t session_id,
+ struct lttng_trace_chunk *chunk,
+ enum consumer_trace_chunk_exists_status *result);