python: define _BaseObject._ptr property
[babeltrace.git] / src / lib / trace-ir / trace-class.h
CommitLineData
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
ae2be88d
SM
8#ifndef BABELTRACE_LIB_TRACE_IR_TRACE_CLASS_H
9#define BABELTRACE_LIB_TRACE_IR_TRACE_CLASS_H
0235b0db 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
21struct bt_trace_class {
22 struct bt_object base;
23
cb4d8361
SM
24 /* Effective MIP version for this trace class */
25 uint64_t mip_version;
26
c6962c96
PP
27 /* Owned by this */
28 struct bt_value *user_attributes;
29
862ca4ed
PP
30 /* Array of `struct bt_stream_class *` */
31 GPtrArray *stream_classes;
32
862ca4ed 33 bool assigns_automatic_stream_class_id;
ad5268b5 34 GArray *destruction_listeners;
862ca4ed
PP
35 bool frozen;
36};
37
862ca4ed
PP
38void _bt_trace_class_freeze(const struct bt_trace_class *trace_class);
39
40#ifdef BT_DEV_MODE
41# define bt_trace_class_freeze _bt_trace_class_freeze
42#else
43# define bt_trace_class_freeze(_tc)
44#endif
45
ae2be88d 46#endif /* BABELTRACE_LIB_TRACE_IR_TRACE_CLASS_H */
This page took 0.094664 seconds and 5 git commands to generate.