Implement proper notification comparison
[babeltrace.git] / include / babeltrace / ctf-ir / stream-class-internal.h
index 88d38c2100b97db509f1ebbfd2631f3f597afc17..1bd1ea18c26bfb63c9711c38fa95aefaa5ea8208 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 {
@@ -50,6 +51,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
@@ -60,8 +67,8 @@ int bt_ctf_stream_class_serialize(struct bt_ctf_stream_class *stream_class,
                struct metadata_context *context);
 
 BT_HIDDEN
-int bt_ctf_stream_class_set_byte_order(struct bt_ctf_stream_class *stream_class,
-               enum bt_ctf_byte_order byte_order);
+void bt_ctf_stream_class_set_byte_order(
+               struct bt_ctf_stream_class *stream_class, int byte_order);
 
 /* Set stream_class id without checking if the stream class is frozen */
 BT_HIDDEN
This page took 0.025998 seconds and 4 git commands to generate.