Commit | Line | Data |
---|---|---|
862ca4ed | 1 | /* |
0235b0db MJ |
2 | * SPDX-License-Identifier: MIT |
3 | * | |
e2f7325d | 4 | * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com> |
862ca4ed | 5 | * Copyright 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
862ca4ed PP |
6 | */ |
7 | ||
0235b0db MJ |
8 | #ifndef BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H |
9 | #define BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H | |
10 | ||
578e048b | 11 | #include "lib/assert-pre.h" |
3fadfbc0 | 12 | #include <babeltrace2/trace-ir/trace-class.h> |
3fadfbc0 MJ |
13 | #include <babeltrace2/trace-ir/field-class.h> |
14 | #include <babeltrace2/trace-ir/field.h> | |
578e048b MJ |
15 | #include "lib/object.h" |
16 | #include "lib/object-pool.h" | |
91d81473 | 17 | #include "common/macros.h" |
3fadfbc0 MJ |
18 | #include <babeltrace2/value.h> |
19 | #include <babeltrace2/types.h> | |
862ca4ed PP |
20 | #include <glib.h> |
21 | #include <sys/types.h> | |
c4f23e30 | 22 | #include <stdbool.h> |
578e048b MJ |
23 | |
24 | #include "stream-class.h" | |
25 | #include "attributes.h" | |
26 | #include "clock-class.h" | |
862ca4ed PP |
27 | |
28 | struct bt_trace_class { | |
29 | struct bt_object base; | |
30 | ||
c6962c96 PP |
31 | /* Owned by this */ |
32 | struct bt_value *user_attributes; | |
33 | ||
862ca4ed PP |
34 | /* Array of `struct bt_stream_class *` */ |
35 | GPtrArray *stream_classes; | |
36 | ||
862ca4ed | 37 | bool assigns_automatic_stream_class_id; |
ad5268b5 | 38 | GArray *destruction_listeners; |
862ca4ed PP |
39 | bool frozen; |
40 | }; | |
41 | ||
42 | BT_HIDDEN | |
43 | void _bt_trace_class_freeze(const struct bt_trace_class *trace_class); | |
44 | ||
45 | #ifdef BT_DEV_MODE | |
46 | # define bt_trace_class_freeze _bt_trace_class_freeze | |
47 | #else | |
48 | # define bt_trace_class_freeze(_tc) | |
49 | #endif | |
50 | ||
51 | #endif /* BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H */ |