Fix: ustctl_get_stream_id without UST support
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index 4435bf3fd4e22cae6cd74113981e25b42d07c756..01f79d68fe6e4c50feb4a6983ef8b51fd4aed21a 100644 (file)
@@ -2383,3 +2383,15 @@ end:
        pthread_mutex_unlock(&ctx->metadata_socket_lock);
        return ret;
 }
+
+/*
+ * Return the ustctl call for the get stream id.
+ */
+int lttng_ustconsumer_get_stream_id(struct lttng_consumer_stream *stream,
+               uint64_t *stream_id)
+{
+       assert(stream);
+       assert(stream_id);
+
+       return ustctl_get_stream_id(stream->ustream, stream_id);
+}
This page took 0.023874 seconds and 4 git commands to generate.