X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Fliblttng-live.h;h=2638da19a9c84ae13fce96c21f43ccc72f8e672b;hp=778540d619ec81c5a39bc76866130a40fc4f5768;hb=d81179ded956debba134ea877a36e674fa916ee8;hpb=e7c77239c7add21d08e81916353c2a09b59c9c4e diff --git a/src/liblttng-live.h b/src/liblttng-live.h index 778540d..2638da1 100644 --- a/src/liblttng-live.h +++ b/src/liblttng-live.h @@ -33,8 +33,14 @@ #define LTTNG_LIVE_MINOR 4 struct lttng_live_ctx { + char traced_hostname[NAME_MAX]; + char session_name[NAME_MAX]; + char relay_hostname[NAME_MAX]; int control_sock; + int port; struct lttng_live_session *session; + struct bt_context *bt_ctx; + GArray *session_ids; }; struct lttng_live_viewer_stream { @@ -62,13 +68,23 @@ 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, - int port); +/* Just used in listing. */ +struct lttng_live_relay_session { + uint32_t streams; + uint32_t clients; + uint32_t timer; + char *name; + char *hostname; +}; + +int lttng_live_connect_viewer(struct lttng_live_ctx *ctx); 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 */