Babeltrace 2 C API  2.0.6
Open-source trace manipulation framework
self-message-iterator.h
1 #ifndef BABELTRACE2_GRAPH_SELF_MESSAGE_ITERATOR_H
2 #define BABELTRACE2_GRAPH_SELF_MESSAGE_ITERATOR_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 <babeltrace2/types.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
100 extern bt_self_component *
102  bt_self_message_iterator *self_message_iterator);
103 
126  bt_self_message_iterator *self_message_iterator);
127 
151  bt_self_message_iterator *self_message_iterator,
152  void *user_data);
153 
170 extern
172  const bt_self_message_iterator *self_message_iterator);
173 
202  const bt_self_message_iterator *self_message_iterator);
203 
238  bt_bool can_seek_forward);
239 
244 #ifdef __cplusplus
245 }
246 #endif
247 
248 #endif /* BABELTRACE2_GRAPH_SELF_MESSAGE_ITERATOR_H */
struct bt_self_message_iterator bt_self_message_iterator
Self message iterator.
Definition: types.h:100
struct bt_self_component bt_self_component
Self component.
Definition: types.h:85
bt_bool bt_self_message_iterator_is_interrupted(const bt_self_message_iterator *self_message_iterator)
Returns whether or not the message iterator self_message_iterator is interrupted, that is...
int bt_bool
Babeltrace 2 boolean type.
Definition: types.h:140
void * bt_self_message_iterator_get_data(const bt_self_message_iterator *self_message_iterator)
Returns the user data of the message iterator self_message_iterator.
bt_self_component_port_output * bt_self_message_iterator_borrow_port(bt_self_message_iterator *self_message_iterator)
Borrows the output port on which the message iterator self_message_iterator operates.
void bt_self_message_iterator_configuration_set_can_seek_forward(bt_self_message_iterator_configuration *configuration, bt_bool can_seek_forward)
Sets whether or not the message iterator of which the configuration is configuration can seek forward...
void bt_self_message_iterator_set_data(bt_self_message_iterator *self_message_iterator, void *user_data)
Sets the user data of the message iterator self_message_iterator to data.
bt_self_component * bt_self_message_iterator_borrow_component(bt_self_message_iterator *self_message_iterator)
Borrows the component which provides the message iterator self_message_iterator.
struct bt_self_message_iterator_configuration bt_self_message_iterator_configuration
Self message iterator configuration.
Definition: types.h:101
struct bt_self_component_port_output bt_self_component_port_output
Self component output port.
Definition: types.h:95