2 * SPDX-License-Identifier: MIT
4 * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
5 * Copyright 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8 #ifndef BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H
9 #define BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H
11 #include "lib/assert-cond.h"
12 #include <babeltrace2/trace-ir/trace-class.h>
13 #include <babeltrace2/trace-ir/field-class.h>
14 #include <babeltrace2/trace-ir/field.h>
15 #include "lib/object.h"
16 #include "lib/object-pool.h"
17 #include "common/macros.h"
18 #include <babeltrace2/value.h>
19 #include <babeltrace2/types.h>
21 #include <sys/types.h>
24 #include "stream-class.h"
25 #include "attributes.h"
26 #include "clock-class.h"
28 struct bt_trace_class
{
29 struct bt_object base
;
32 struct bt_value
*user_attributes
;
34 /* Array of `struct bt_stream_class *` */
35 GPtrArray
*stream_classes
;
37 bool assigns_automatic_stream_class_id
;
38 GArray
*destruction_listeners
;
43 void _bt_trace_class_freeze(const struct bt_trace_class
*trace_class
);
46 # define bt_trace_class_freeze _bt_trace_class_freeze
48 # define bt_trace_class_freeze(_tc)
51 #endif /* BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H */