Run clang-format on the whole tree
[lttng-tools.git] / src / bin / lttng-sessiond / ust-registry-channel.hpp
index e8819812e139aa28062f86dfb9202241cc81f8b5..a32b8088eed172ed7443f7d37fffb61d661080db 100644 (file)
@@ -9,6 +9,7 @@
 #define LTTNG_UST_REGISTRY_CHANNEL_H
 
 #include "stream-class.hpp"
+#include "trace-class.hpp"
 
 #include <common/hashtable/hashtable.hpp>
 
@@ -31,6 +32,8 @@ public:
        using event_added_listener_fn = std::function<void(const registry_channel&, const registry_event &)>;
 
        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,
@@ -45,8 +48,8 @@ public:
                        uint32_t& out_event_id);
        virtual ~registry_channel();
 
-       virtual const lttng::sessiond::trace::type& get_context() const override final;
-       void set_context(lttng::sessiond::trace::type::cuptr context);
+       virtual const lttng::sessiond::trace::type *event_context() const override final;
+       void event_context(lttng::sessiond::trace::type::cuptr context);
 
        /* Channel was registered to at least one application. */
        bool is_registered() const;
@@ -55,12 +58,6 @@ public:
        uint64_t _key;
        uint64_t _consumer_key;
 
-       /*
-        * Flag for this channel if the metadata was dumped once during
-        * registration. 0 means no, 1 yes.
-        */
-       unsigned int _metadata_dumped;
-
        /*
         * Hash table containing events sent by the UST tracer. MUST be accessed
         * with a RCU read side lock acquired.
This page took 0.024638 seconds and 4 git commands to generate.