ir: add public bt_ctf_packet object
[babeltrace.git] / include / babeltrace / ctf-ir / stream-class-internal.h
index 2a481b0852c4d2a409a4eeba7e843e55700879dd..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 {
@@ -45,13 +46,17 @@ struct bt_ctf_stream_class {
        uint32_t id;
        uint32_t next_event_id;
        uint32_t next_stream_id;
-       /* Weak reference; a stream class does not have ownership of a trace */
-       struct bt_ctf_trace *trace;
        struct bt_ctf_field_type *packet_context_type;
        struct bt_ctf_field_type *event_header_type;
        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
@@ -62,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
@@ -74,8 +79,4 @@ BT_HIDDEN
 int bt_ctf_stream_class_set_id_no_check(
                struct bt_ctf_stream_class *stream_class, uint32_t id);
 
-BT_HIDDEN
-int bt_ctf_stream_class_set_trace(struct bt_ctf_stream_class *stream_class,
-               struct bt_ctf_trace *trace);
-
 #endif /* BABELTRACE_CTF_IR_STREAM_CLASS_INTERNAL_H */
This page took 0.024848 seconds and 4 git commands to generate.