Unify reference counting using a common bt_object base
[babeltrace.git] / include / babeltrace / ctf-ir / stream-class-internal.h
index 3b368d1de2230bb26619b7a8763f09a052319af2..2a481b0852c4d2a409a4eeba7e843e55700879dd 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 */
@@ -70,6 +70,10 @@ 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);
+
 BT_HIDDEN
 int bt_ctf_stream_class_set_trace(struct bt_ctf_stream_class *stream_class,
                struct bt_ctf_trace *trace);
This page took 0.02452 seconds and 4 git commands to generate.