ctf.fs: bt_ctf_notif_iter_create(): assert() that all medops exist
[babeltrace.git] / include / babeltrace / ctf-ir / stream-class-internal.h
index 94dc6206146d763eb728f222b084120a3cbe6658..db5b7c79dccdd5e314a016cd0972355d52dc975a 100644 (file)
@@ -34,6 +34,7 @@
 #include <babeltrace/object-internal.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/ctf/types.h>
+#include <babeltrace/ctf-ir/trace-internal.h>
 #include <glib.h>
 
 struct bt_ctf_stream_class {
@@ -41,6 +42,8 @@ struct bt_ctf_stream_class {
        GString *name;
        struct bt_ctf_clock *clock;
        GPtrArray *event_classes; /* Array of pointers to bt_ctf_event_class */
+       /* event class id (int64_t) to event class */
+       GHashTable *event_classes_ht;
        int id_set;
        uint32_t id;
        uint32_t next_event_id;
@@ -50,6 +53,12 @@ struct bt_ctf_stream_class {
        struct bt_ctf_field_type *event_context_type;
        int frozen;
        int byte_order;
+
+       /*
+        * This flag indicates if the stream class is valid. A valid
+        * stream class is _always_ frozen.
+        */
+       int valid;
 };
 
 BT_HIDDEN
This page took 0.022863 seconds and 4 git commands to generate.