Fix: cmd_snapshot_record can return unexpected error codes
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.h
index 52a7cbfd35dbc060c5e3663bbd418fbb3b87854e..913533561d7a04d0617dc9796583343b6c8fc068 100644 (file)
@@ -345,7 +345,7 @@ void ust_app_notify_sock_unregister(int sock);
 ssize_t ust_app_push_metadata(struct ust_registry_session *registry,
                struct consumer_socket *socket, int send_zero_data);
 void ust_app_destroy(struct ust_app *app);
-int ust_app_snapshot_record(struct ltt_ust_session *usess,
+enum lttng_error_code ust_app_snapshot_record(struct ltt_ust_session *usess,
                struct snapshot_output *output, int wait,
                uint64_t nb_packets_per_stream);
 uint64_t ust_app_get_size_one_more_packet_per_stream(
@@ -539,7 +539,7 @@ void ust_app_destroy(struct ust_app *app)
        return;
 }
 static inline
-int ust_app_snapshot_record(struct ltt_ust_session *usess,
+enum lttng_error_code ust_app_snapshot_record(struct ltt_ust_session *usess,
                struct snapshot_output *output, int wait, uint64_t max_stream_size)
 {
        return 0;
This page took 0.024169 seconds and 5 git commands to generate.