#include <glib.h>
#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/compat/socket-internal.h>
//TODO: this should not be used by plugins. Should copy code into plugin
//instead.
#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 {
};
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);