Implement new CTF-IR reference counting scheme
[babeltrace.git] / include / babeltrace / ctf-ir / stream-class-internal.h
index b25c197d36a54aab098b8fbab6ab792bc9afe022..88d38c2100b97db509f1ebbfd2631f3f597afc17 100644 (file)
  * SOFTWARE.
  */
 
-#include <babeltrace/ctf-writer/ref-internal.h>
 #include <babeltrace/ctf-writer/clock.h>
 #include <babeltrace/ctf-writer/event-fields.h>
 #include <babeltrace/ctf-writer/event-types.h>
+#include <babeltrace/ctf-ir/trace.h>
+#include <babeltrace/object-internal.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/ctf/types.h>
 #include <glib.h>
 
 struct bt_ctf_stream_class {
-       struct bt_ctf_ref ref_count;
+       struct bt_object base;
        GString *name;
        struct bt_ctf_clock *clock;
        GPtrArray *event_classes; /* Array of pointers to bt_ctf_event_class */
@@ -48,6 +49,7 @@ struct bt_ctf_stream_class {
        struct bt_ctf_field_type *event_header_type;
        struct bt_ctf_field_type *event_context_type;
        int frozen;
+       int byte_order;
 };
 
 BT_HIDDEN
@@ -61,4 +63,13 @@ BT_HIDDEN
 int bt_ctf_stream_class_set_byte_order(struct bt_ctf_stream_class *stream_class,
                enum bt_ctf_byte_order byte_order);
 
+/* Set stream_class id without checking if the stream class is frozen */
+BT_HIDDEN
+int _bt_ctf_stream_class_set_id(struct bt_ctf_stream_class *stream_class,
+               uint32_t id);
+
+BT_HIDDEN
+int bt_ctf_stream_class_set_id_no_check(
+               struct bt_ctf_stream_class *stream_class, uint32_t id);
+
 #endif /* BABELTRACE_CTF_IR_STREAM_CLASS_INTERNAL_H */
This page took 0.024491 seconds and 4 git commands to generate.