X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Fstream-class.h;h=d4984a1a6c2cd7fd91c0624b810c5ae366c55920;hb=c4f23e30bf67d2523163614bc9461d84cbe1ae80;hp=1efa77078c1800573a6989eec37c4554e146af63;hpb=578e048b5debf169e286e5b5cc747b5d6c16886d;p=babeltrace.git diff --git a/src/lib/trace-ir/stream-class.h b/src/lib/trace-ir/stream-class.h index 1efa7707..d4984a1a 100644 --- a/src/lib/trace-ir/stream-class.h +++ b/src/lib/trace-ir/stream-class.h @@ -29,9 +29,10 @@ #include #include "lib/object.h" #include "lib/object-pool.h" -#include "common/babeltrace.h" +#include "common/macros.h" #include #include +#include #include "field-class.h" #include "utils.h" @@ -39,6 +40,9 @@ struct bt_stream_class { struct bt_object base; + /* Owned by this */ + struct bt_value *user_attributes; + struct { GString *str; @@ -49,6 +53,7 @@ struct bt_stream_class { uint64_t id; bool assigns_automatic_event_class_id; bool assigns_automatic_stream_id; + bool supports_packets; bool packets_have_beginning_default_clock_snapshot; bool packets_have_end_default_clock_snapshot; bool supports_discarded_events; @@ -81,7 +86,7 @@ static inline struct bt_trace_class *bt_stream_class_borrow_trace_class_inline( const struct bt_stream_class *stream_class) { - BT_ASSERT(stream_class); + BT_ASSERT_DBG(stream_class); return (void *) bt_object_borrow_parent(&stream_class->base); }