#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 {
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 */