* SOFTWARE.
*/
+#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
+
#include <glib.h>
+#include <babeltrace2/babeltrace.h>
+
#include "common/macros.h"
#include "compat/socket.h"
-//TODO: this should not be used by plugins. Should copy code into plugin
-//instead.
-#include "lib/object.h"
-
#define LTTNG_DEFAULT_NETWORK_VIEWER_PORT 5344
#define LTTNG_LIVE_MAJOR 2
struct lttng_live_component;
struct live_viewer_connection {
- bt_object obj;
+ bt_logging_level log_level;
+ bt_self_component *self_comp;
+ bt_self_component_class *self_comp_class;
GString *url;
struct live_viewer_connection * live_viewer_connection_create(
const char *url, bool in_query,
- struct lttng_live_msg_iter *lttng_live_msg_iter);
+ struct lttng_live_msg_iter *lttng_live_msg_iter,
+ bt_self_component *self_comp,
+ bt_self_component_class *self_comp_class,
+ bt_logging_level log_level);
void live_viewer_connection_destroy(
struct live_viewer_connection *conn);
-bt_query_status live_viewer_connection_list_sessions(
+bt_component_class_query_method_status live_viewer_connection_list_sessions(
struct live_viewer_connection *viewer_connection,
const bt_value **user_result);