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 | ||
3fadfbc0 | 11 | #include <babeltrace2/trace-ir/trace-class.h> |
3fadfbc0 MJ |
12 | #include <babeltrace2/trace-ir/field-class.h> |
13 | #include <babeltrace2/trace-ir/field.h> | |
578e048b | 14 | #include "lib/object.h" |
3fadfbc0 MJ |
15 | #include <babeltrace2/value.h> |
16 | #include <babeltrace2/types.h> | |
862ca4ed PP |
17 | #include <glib.h> |
18 | #include <sys/types.h> | |
c4f23e30 | 19 | #include <stdbool.h> |
578e048b | 20 | |
862ca4ed PP |
21 | struct bt_trace_class { |
22 | struct bt_object base; | |
23 | ||
c6962c96 PP |
24 | /* Owned by this */ |
25 | struct bt_value *user_attributes; | |
26 | ||
862ca4ed PP |
27 | /* Array of `struct bt_stream_class *` */ |
28 | GPtrArray *stream_classes; | |
29 | ||
862ca4ed | 30 | bool assigns_automatic_stream_class_id; |
ad5268b5 | 31 | GArray *destruction_listeners; |
862ca4ed PP |
32 | bool frozen; |
33 | }; | |
34 | ||
862ca4ed PP |
35 | void _bt_trace_class_freeze(const struct bt_trace_class *trace_class); |
36 | ||
37 | #ifdef BT_DEV_MODE | |
38 | # define bt_trace_class_freeze _bt_trace_class_freeze | |
39 | #else | |
40 | # define bt_trace_class_freeze(_tc) | |
41 | #endif | |
42 | ||
43 | #endif /* BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H */ |