Sync babeltrace lttng-live functions
[lttngtop.git] / src / liblttng-live.h
index 778540d619ec81c5a39bc76866130a40fc4f5768..2638da19a9c84ae13fce96c21f43ccc72f8e672b 100644 (file)
 #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 */
This page took 0.022425 seconds and 4 git commands to generate.