configure: enable -Wshadow-field
[babeltrace.git] / src / lib / trace-ir / trace-class.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
5 * Copyright 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 */
7
8 #ifndef BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H
9 #define BABELTRACE_TRACE_IR_TRACE_CLASS_INTERNAL_H
10
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>
20 #include <glib.h>
21 #include <sys/types.h>
22 #include <stdbool.h>
23
24 #include "stream-class.h"
25 #include "attributes.h"
26 #include "clock-class.h"
27
28 struct bt_trace_class {
29 struct bt_object base;
30
31 /* Owned by this */
32 struct bt_value *user_attributes;
33
34 /* Array of `struct bt_stream_class *` */
35 GPtrArray *stream_classes;
36
37 bool assigns_automatic_stream_class_id;
38 GArray *destruction_listeners;
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 */
This page took 0.030956 seconds and 4 git commands to generate.