X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Flttng-live%2Fviewer-connection.h;h=549a900387d5eb611eb686ac367b997c62f8ef11;hb=d24d56638469189904fb6ddbb3c725817b3e9417;hp=761660f6557ff99c03d04263a7a18c8c83c8290d;hpb=91d8147391efdc4d42cc4e1c171a65c0372a008f;p=babeltrace.git diff --git a/src/plugins/ctf/lttng-live/viewer-connection.h b/src/plugins/ctf/lttng-live/viewer-connection.h index 761660f6..549a9003 100644 --- a/src/plugins/ctf/lttng-live/viewer-connection.h +++ b/src/plugins/ctf/lttng-live/viewer-connection.h @@ -29,8 +29,12 @@ #include "common/macros.h" #include "compat/socket.h" -//TODO: this should not be used by plugins. Should copy code into plugin -//instead. +/* + * FIXME: This is an internal Babeltrace library header; it is not meant + * to be generic as it is now. Make sure this included code does not + * log because it won't find our local log level. + */ +#define BT_OBJECT_DONT_LOG #include "lib/object.h" #define LTTNG_DEFAULT_NETWORK_VIEWER_PORT 5344 @@ -41,6 +45,8 @@ struct lttng_live_component; struct live_viewer_connection { + bt_logging_level log_level; + bt_self_component *self_comp; bt_object obj; GString *url; @@ -85,7 +91,7 @@ struct live_viewer_connection * live_viewer_connection_create( 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);