X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-registry-channel.hpp;h=cbe1ab5af48fd4e9153dca746dcdff4dcc980d51;hb=1060af5401d38578a731ec042cee2daf3b09b628;hp=1e5745aedcfe2fdc4b980315c84414dbfbf4b2cb;hpb=6d31b87d46a9301fe86d273616ab3d7214d24e65;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/ust-registry-channel.hpp b/src/bin/lttng-sessiond/ust-registry-channel.hpp index 1e5745aed..cbe1ab5af 100644 --- a/src/bin/lttng-sessiond/ust-registry-channel.hpp +++ b/src/bin/lttng-sessiond/ust-registry-channel.hpp @@ -9,6 +9,7 @@ #define LTTNG_UST_REGISTRY_CHANNEL_H #include "stream-class.hpp" +#include "trace-class.hpp" #include @@ -31,6 +32,8 @@ public: using event_added_listener_fn = std::function; registry_channel(uint32_t channel_id, + const lttng::sessiond::trace::abi& trace_abi, + std::string default_clock_class_name, registered_listener_fn channel_registered_listener, event_added_listener_fn new_event_listener); void add_event(int session_objd, @@ -43,10 +46,10 @@ public: lttng_buffer_type buffer_type, const ust_app& app, uint32_t& out_event_id); - virtual ~registry_channel(); + ~registry_channel() override; - virtual const lttng::sessiond::trace::type& get_context() const override final; - void set_context(lttng::sessiond::trace::type::cuptr context); + const lttng::sessiond::trace::type *event_context() const final; + void event_context(lttng::sessiond::trace::type::cuptr context); /* Channel was registered to at least one application. */ bool is_registered() const; @@ -67,8 +70,8 @@ public: uint32_t _next_event_id; private: - virtual void _accept_on_event_classes( - lttng::sessiond::trace::trace_class_visitor& trace_class_visitor) const override final; + void _accept_on_event_classes( + lttng::sessiond::trace::trace_class_visitor& trace_class_visitor) const final; registered_listener_fn _is_registered_listener; event_added_listener_fn _event_added_listener;