bt2: Adapt test_trace.py and make it pass
[babeltrace.git] / bindings / python / bt2 / bt2 / native_bt_stream_class.i
CommitLineData
6945df9a
SM
1/*
2 * The MIT License (MIT)
3 *
4 * Copyright (c) 2016 Philippe Proulx <pproulx@efficios.com>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24
25/* From stream-class-const.h */
26
27typedef enum bt_stream_class_status {
28 BT_STREAM_CLASS_STATUS_OK = 0,
29 BT_STREAM_CLASS_STATUS_NOMEM = -12,
30} bt_stream_class_status;
31
32extern const bt_trace_class *bt_stream_class_borrow_trace_class_const(
33 const bt_stream_class *stream_class);
34
35extern const char *bt_stream_class_get_name(
36 const bt_stream_class *stream_class);
37
38extern bt_bool bt_stream_class_assigns_automatic_event_class_id(
39 const bt_stream_class *stream_class);
40
41extern bt_bool bt_stream_class_assigns_automatic_stream_id(
42 const bt_stream_class *stream_class);
43
44extern uint64_t bt_stream_class_get_id(
45 const bt_stream_class *stream_class);
46
47extern const bt_field_class *
48bt_stream_class_borrow_packet_context_field_class_const(
49 const bt_stream_class *stream_class);
50
51extern const bt_field_class *
52bt_stream_class_borrow_event_common_context_field_class_const(
53 const bt_stream_class *stream_class);
54
55extern uint64_t bt_stream_class_get_event_class_count(
56 const bt_stream_class *stream_class);
57
58extern const bt_event_class *
59bt_stream_class_borrow_event_class_by_index_const(
60 const bt_stream_class *stream_class, uint64_t index);
61
62extern const bt_event_class *
63bt_stream_class_borrow_event_class_by_id_const(
64 const bt_stream_class *stream_class, uint64_t id);
65
66extern const bt_clock_class *
67bt_stream_class_borrow_default_clock_class_const(
68 const bt_stream_class *stream_class);
69
6945df9a
SM
70extern void bt_stream_class_get_ref(const bt_stream_class *stream_class);
71
72extern void bt_stream_class_put_ref(const bt_stream_class *stream_class);
73
74/* From stream-class-const.h */
75
76extern bt_stream_class *bt_stream_class_create(
77 bt_trace_class *trace_class);
78
79extern bt_stream_class *bt_stream_class_create_with_id(
80 bt_trace_class *trace_class, uint64_t id);
81
82extern bt_trace_class *bt_stream_class_borrow_trace_class(
83 bt_stream_class *stream_class);
84
85extern bt_stream_class_status bt_stream_class_set_name(
86 bt_stream_class *stream_class, const char *name);
87
88extern void bt_stream_class_set_assigns_automatic_event_class_id(
89 bt_stream_class *stream_class, bt_bool value);
90
91extern void bt_stream_class_set_assigns_automatic_stream_id(
92 bt_stream_class *stream_class, bt_bool value);
93
94extern bt_stream_class_status
95bt_stream_class_set_packet_context_field_class(
96 bt_stream_class *stream_class,
97 bt_field_class *field_class);
98
99extern bt_field_class *
100bt_stream_class_borrow_packet_context_field_class(
101 bt_stream_class *stream_class);
102
103extern bt_stream_class_status
104bt_stream_class_set_event_common_context_field_class(
105 bt_stream_class *stream_class,
106 bt_field_class *field_class);
107
108extern bt_field_class *
109bt_stream_class_borrow_event_common_context_field_class(
110 bt_stream_class *stream_class);
111
112extern bt_event_class *
113bt_stream_class_borrow_event_class_by_index(
114 bt_stream_class *stream_class, uint64_t index);
115
116extern bt_event_class *
117bt_stream_class_borrow_event_class_by_id(
118 bt_stream_class *stream_class, uint64_t id);
119
120extern bt_clock_class *bt_stream_class_borrow_default_clock_class(
121 bt_stream_class *stream_class);
122
123extern bt_stream_class_status bt_stream_class_set_default_clock_class(
124 bt_stream_class *stream_class,
125 bt_clock_class *clock_class);
This page took 0.034414 seconds and 4 git commands to generate.