X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Flttng-live%2Flttng-live-functions.h;h=ce311250ee07aa4840589c85d70da5f80c466637;hp=778540d619ec81c5a39bc76866130a40fc4f5768;hb=2acdc547504407b8601937b9d89df8f56662e55d;hpb=6192b9881a890a2fccc029054b312df95cbf5529 diff --git a/formats/lttng-live/lttng-live-functions.h b/formats/lttng-live/lttng-live-functions.h index 778540d6..ce311250 100644 --- a/formats/lttng-live/lttng-live-functions.h +++ b/formats/lttng-live/lttng-live-functions.h @@ -35,6 +35,8 @@ struct lttng_live_ctx { int control_sock; struct lttng_live_session *session; + GArray *session_ids; + struct bt_context *bt_ctx; }; struct lttng_live_viewer_stream { @@ -62,6 +64,7 @@ struct lttng_live_ctf_trace { GPtrArray *streams; FILE *metadata_fp; int trace_id; + int in_use; }; int lttng_live_connect_viewer(struct lttng_live_ctx *ctx, char *hostname, @@ -69,6 +72,7 @@ int lttng_live_connect_viewer(struct lttng_live_ctx *ctx, char *hostname, int lttng_live_establish_connection(struct lttng_live_ctx *ctx); 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, uint64_t session_id); +void lttng_live_read(struct lttng_live_ctx *ctx); +int lttng_live_get_new_streams(struct lttng_live_ctx *ctx, uint64_t id); #endif /* _LTTNG_LIVE_FUNCTIONS_H */