Fix: mmap trace read the stream_id from the first packet
[babeltrace.git] / formats / lttng-live / lttng-live.h
index d7b0e860b14786950ca5dee227447d6b8dd35a83..c4641df7c62bc934896ea3ac0d81d49ca8bc5d92 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #include <stdint.h>
+#include "lttng-viewer-abi.h"
 
 #define LTTNG_DEFAULT_NETWORK_VIEWER_PORT      5344
 
@@ -48,12 +49,14 @@ struct lttng_live_ctx {
 struct lttng_live_viewer_stream {
        uint64_t id;
        uint64_t mmap_size;
+       uint64_t ctf_stream_id;
        FILE *metadata_fp_write;
        ssize_t metadata_len;
        int metadata_flag;
-       int first_read;
+       int data_pending;
        struct lttng_live_session *session;
        struct lttng_live_ctf_trace *ctf_trace;
+       struct lttng_viewer_index current_index;
        char path[PATH_MAX];
 };
 
This page took 0.025269 seconds and 4 git commands to generate.