Fix: add missing SIGTERM and SIGINT handler
[babeltrace.git] / formats / lttng-live / lttng-live.h
index 071f288183564e95ceb69346d094e490952a1a02..ae04e8979a18edd536e9bb5e3f7227322ccdee0a 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <stdint.h>
 
-#define LTTNG_METADATA_PATH_TEMPLATE           "/tmp/lttng-live-XXXXXX"
 #define LTTNG_DEFAULT_NETWORK_VIEWER_PORT      5344
 
 #define LTTNG_LIVE_MAJOR                       2
@@ -46,7 +45,8 @@ struct lttng_live_ctx {
 struct lttng_live_viewer_stream {
        uint64_t id;
        uint64_t mmap_size;
-       int fd;
+       FILE *metadata_fp_write;
+       ssize_t metadata_len;
        int metadata_flag;
        int first_read;
        struct lttng_live_session *session;
@@ -87,5 +87,6 @@ int lttng_live_list_sessions(struct lttng_live_ctx *ctx, const char *path);
 int lttng_live_attach_session(struct lttng_live_ctx *ctx, uint64_t id);
 void lttng_live_read(struct lttng_live_ctx *ctx);
 int lttng_live_get_new_streams(struct lttng_live_ctx *ctx, uint64_t id);
+int lttng_live_should_quit(void);
 
 #endif /* _LTTNG_LIVE_H */
This page took 0.024155 seconds and 4 git commands to generate.