uint64_t lost_packets = 0;
bool streams_sent_to_relayd = false;
- uint64_t last_consumed_size_sample_sent = false;
+ uint64_t consumed_size_as_of_last_sample_sent = 0;
};
struct stream_subbuffer {
* Returns the return code of sendmsg : the number of bytes transmitted or -1
* on error.
*/
-int lttng_consumer_send_error(struct lttng_consumer_local_data *ctx, int cmd);
+int lttng_consumer_send_error(struct lttng_consumer_local_data *ctx,
+ enum lttcomm_return_code error_code);
/*
* Called from signal handler to ensure a clean exit.