X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Flttng-live%2Fviewer-connection.h;h=bb9c2852f023055832e2e613774b37551d2d5ab8;hb=a2147eb219d357ec1194337ffb1c8ac8eb0c6d5c;hp=822c17ed3b874820aa6dc29a06fa3736e3e9c3e0;hpb=94b828f31a1155cd07721926761e32cfc610bf47;p=babeltrace.git diff --git a/plugins/ctf/lttng-live/viewer-connection.h b/plugins/ctf/lttng-live/viewer-connection.h index 822c17ed..bb9c2852 100644 --- a/plugins/ctf/lttng-live/viewer-connection.h +++ b/plugins/ctf/lttng-live/viewer-connection.h @@ -27,6 +27,7 @@ #include #include +#include //TODO: this should not be used by plugins. Should copy code into plugin //instead. @@ -37,22 +38,24 @@ #define LTTNG_LIVE_MAJOR 2 #define LTTNG_LIVE_MINOR 4 +struct lttng_live_component; + struct bt_live_viewer_connection { struct bt_object obj; - FILE *error_fp; - GString *url; GString *relay_hostname; GString *target_hostname; GString *session_name; - int control_sock; + BT_SOCKET control_sock; int port; int32_t major; int32_t minor; + + struct lttng_live_component *lttng_live; }; struct packet_index_time { @@ -75,7 +78,7 @@ struct packet_index { }; struct bt_live_viewer_connection * - bt_live_viewer_connection_create(const char *url, FILE *error_fp); + bt_live_viewer_connection_create(const char *url, struct lttng_live_component *lttng_live); void bt_live_viewer_connection_destroy(struct bt_live_viewer_connection *conn);