sessiond: return raw pointer to packet header
[lttng-tools.git] / src / bin / lttng-sessiond / trace-class.hpp
index 087499866e097775dfc0bf4f2b2a564e1a4e3df8..52dcb76a94355315004638334d8672fa2f75ea57 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef LTTNG_TRACE_CLASS_H
 #define LTTNG_TRACE_CLASS_H
 
+#include "field.hpp"
+
 #include <common/uuid.hpp>
 
 namespace lttng {
@@ -19,11 +21,6 @@ class stream_class;
 class event_class;
 class trace_class_visitor;
 
-enum class byte_order {
-       BIG_ENDIAN_,
-       LITTLE_ENDIAN_,
-};
-
 struct abi {
        unsigned int bits_per_long;
        unsigned int long_alignment;
@@ -53,6 +50,7 @@ public:
         * to continue the traversal to the trace class' children.
         */
        virtual void accept(trace_class_visitor& trace_class_visitor) const;
+       virtual const lttng::sessiond::trace::type *get_packet_header() const noexcept = 0;
 
        virtual ~trace_class() = default;
 
This page took 0.023241 seconds and 4 git commands to generate.