Babeltrace 2 C API  2.0.5
Open-source trace manipulation framework
types.h
1 #ifndef BABELTRACE2_TYPES_H
2 #define BABELTRACE2_TYPES_H
3 
4 /*
5  * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation
6  *
7  * Permission is hereby granted, free of charge, to any person obtaining a copy
8  * of this software and associated documentation files (the "Software"), to deal
9  * in the Software without restriction, including without limitation the rights
10  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11  * copies of the Software, and to permit persons to whom the Software is
12  * furnished to do so, subject to the following conditions:
13  *
14  * The above copyright notice and this permission notice shall be included in
15  * all copies or substantial portions of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23  * SOFTWARE.
24  */
25 
26 #ifndef __BT_IN_BABELTRACE_H
27 # error "Please include <babeltrace2/babeltrace.h> instead."
28 #endif
29 
30 #include <stdint.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
38 typedef struct bt_component bt_component;
48 typedef struct bt_error bt_error;
50 typedef struct bt_event bt_event;
52 typedef struct bt_event_header_field bt_event_header_field;
53 typedef struct bt_field bt_field;
64 typedef struct bt_graph bt_graph;
71 typedef struct bt_message bt_message;
74 typedef struct bt_object bt_object;
75 typedef struct bt_packet bt_packet;
76 typedef struct bt_plugin bt_plugin;
78 typedef struct bt_plugin_so_shared_lib_handle bt_plugin_so_shared_lib_handle;
79 typedef struct bt_port bt_port;
82 typedef struct bt_port_output_message_iterator bt_port_output_message_iterator;
103 typedef struct bt_stream bt_stream;
105 typedef struct bt_trace bt_trace;
107 typedef struct bt_value bt_value;
108 
122 #define BT_TRUE 1
123 
128 #define BT_FALSE 0
129 
140 typedef int bt_bool;
141 
150 typedef uint64_t bt_listener_id;
151 
158 typedef uint8_t const *bt_uuid;
159 
179 
186 
197 
200 #ifdef __cplusplus
201 }
202 #endif
203 
204 #endif /* BABELTRACE2_TYPES_H */
struct bt_component_descriptor_set bt_component_descriptor_set
Component descriptor set.
Definition: types.h:43
struct bt_integer_range_unsigned bt_integer_range_unsigned
Unsigned 64-bit integer range.
Definition: types.h:69
struct bt_integer_range_set_unsigned bt_integer_range_set_unsigned
Set of unsigned 64-bit integer ranges.
Definition: types.h:67
struct bt_self_component_filter bt_self_component_filter
Self filter component.
Definition: types.h:90
struct bt_component_class_source bt_component_class_source
Source component class.
Definition: types.h:42
struct bt_self_component_source_configuration bt_self_component_source_configuration
Self source component configuration.
Definition: types.h:99
struct bt_component_sink bt_component_sink
Sink component.
Definition: types.h:45
struct bt_plugin_set bt_plugin_set
Set of plugins.
Definition: types.h:77
struct bt_field_class_variant_with_selector_field_integer_signed_option bt_field_class_variant_with_selector_field_integer_signed_option
Variant field class (with a signed integer selector field) option.
Definition: types.h:60
bt_message const ** bt_message_array_const
Array of constant messages.
Definition: types.h:196
struct bt_field_path_item bt_field_path_item
Field path item.
Definition: types.h:63
struct bt_self_message_iterator bt_self_message_iterator
Self message iterator.
Definition: types.h:100
struct bt_field_path bt_field_path
Field path.
Definition: types.h:62
struct bt_message_iterator bt_message_iterator
Message iterator.
Definition: types.h:72
struct bt_port_input bt_port_input
Input port.
Definition: types.h:80
struct bt_component_source bt_component_source
Source component.
Definition: types.h:46
struct bt_component_class_filter bt_component_class_filter
Filter component class.
Definition: types.h:40
struct bt_event bt_event
Event.
Definition: types.h:50
struct bt_port_output bt_port_output
Output port.
Definition: types.h:81
struct bt_self_component bt_self_component
Self component.
Definition: types.h:85
struct bt_self_component_sink_configuration bt_self_component_sink_configuration
Self sink component configuration.
Definition: types.h:97
struct bt_query_executor bt_query_executor
Query executor.
Definition: types.h:84
struct bt_field_class bt_field_class
Field class.
Definition: types.h:54
struct bt_private_query_executor bt_private_query_executor
Private query executor.
Definition: types.h:83
bt_property_availability
Availability of an object's property.
Definition: types.h:173
struct bt_component_class bt_component_class
Component class.
Definition: types.h:39
Property is not available.
Definition: types.h:184
struct bt_component_filter bt_component_filter
Filter component.
Definition: types.h:44
struct bt_self_component_sink bt_self_component_sink
Self sink component.
Definition: types.h:96
struct bt_message bt_message
Message.
Definition: types.h:71
struct bt_stream bt_stream
Stream.
Definition: types.h:103
struct bt_field_class_structure_member bt_field_class_structure_member
Structure field class member.
Definition: types.h:58
struct bt_error bt_error
Error.
Definition: types.h:48
struct bt_trace bt_trace
Trace.
Definition: types.h:105
struct bt_self_component_class_source bt_self_component_class_source
Self source component class.
Definition: types.h:89
struct bt_self_component_port_input bt_self_component_port_input
Self component input port.
Definition: types.h:93
struct bt_interrupter bt_interrupter
Interrupter.
Definition: types.h:70
struct bt_field_class_variant_option bt_field_class_variant_option
Variant field class option.
Definition: types.h:59
struct bt_integer_range_signed bt_integer_range_signed
Signed 64-bit integer range.
Definition: types.h:68
struct bt_plugin bt_plugin
Plugin.
Definition: types.h:76
struct bt_self_component_class_filter bt_self_component_class_filter
Self filter component class.
Definition: types.h:87
struct bt_component bt_component
Component.
Definition: types.h:38
struct bt_value bt_value
Value.
Definition: types.h:107
struct bt_event_class bt_event_class
Event class.
Definition: types.h:51
struct bt_self_plugin bt_self_plugin
Self plugin.
Definition: types.h:102
struct bt_component_class_sink bt_component_class_sink
Sink component class.
Definition: types.h:41
int bt_bool
Babeltrace 2 boolean type.
Definition: types.h:140
struct bt_port bt_port
Port.
Definition: types.h:79
struct bt_self_component_port bt_self_component_port
Self component component.
Definition: types.h:92
struct bt_integer_range_set_signed bt_integer_range_set_signed
Set of signed 64-bit integer ranges.
Definition: types.h:66
struct bt_connection bt_connection
Connection.
Definition: types.h:47
struct bt_self_component_class_sink bt_self_component_class_sink
Self sink component class.
Definition: types.h:88
struct bt_field_class_enumeration_signed_mapping bt_field_class_enumeration_signed_mapping
Signed enumeration field class mapping.
Definition: types.h:56
struct bt_self_component_source bt_self_component_source
Self source component.
Definition: types.h:98
struct bt_trace_class bt_trace_class
Trace class.
Definition: types.h:106
struct bt_clock_snapshot bt_clock_snapshot
Clock snapshot.
Definition: types.h:37
struct bt_field_class_enumeration_mapping bt_field_class_enumeration_mapping
Enumeration field class mapping.
Definition: types.h:55
Property is available.
Definition: types.h:178
uint64_t bt_listener_id
Numeric ID which identifies a user listener function.
Definition: types.h:150
struct bt_field_class_variant_with_selector_field_integer_unsigned_option bt_field_class_variant_with_selector_field_integer_unsigned_option
Variant field class (with an unsigned integer selector field) option.
Definition: types.h:61
struct bt_integer_range_set bt_integer_range_set
Set of 64-bit integer ranges.
Definition: types.h:65
struct bt_packet bt_packet
Packet.
Definition: types.h:75
struct bt_field bt_field
Field.
Definition: types.h:53
struct bt_self_component_class bt_self_component_class
Self component class.
Definition: types.h:86
struct bt_self_message_iterator_configuration bt_self_message_iterator_configuration
Self message iterator configuration.
Definition: types.h:101
struct bt_graph bt_graph
Trace processing graph.
Definition: types.h:64
struct bt_error_cause bt_error_cause
Error cause.
Definition: types.h:49
struct bt_stream_class bt_stream_class
Stream class.
Definition: types.h:104
struct bt_message_iterator_class bt_message_iterator_class
Message iterator class.
Definition: types.h:73
struct bt_self_component_port_output bt_self_component_port_output
Self component output port.
Definition: types.h:95
struct bt_field_class_enumeration_unsigned_mapping bt_field_class_enumeration_unsigned_mapping
Unsigned enumeration field class mapping.
Definition: types.h:57
struct bt_self_component_filter_configuration bt_self_component_filter_configuration
Self filter component configuration.
Definition: types.h:91
struct bt_clock_class bt_clock_class
Clock class.
Definition: types.h:36
uint8_t const * bt_uuid
A UUID, that is, an array of 16 constant bytes.
Definition: types.h:158