7#ifndef BABELTRACE2_GRAPH_MESSAGE_ITERATOR_H
8#define BABELTRACE2_GRAPH_MESSAGE_ITERATOR_H
12#ifndef __BT_IN_BABELTRACE_H
13# error "Please include <babeltrace2/babeltrace.h> instead."
536 bt_bool *can_seek_beginning) __BT_NOEXCEPT;
679 int64_t ns_from_origin,
bt_bool *can_seek_ns_from_origin)
752 int64_t ns_from_origin) __BT_NOEXCEPT;
840#define BT_MESSAGE_ITERATOR_PUT_REF_AND_RESET(_message_iterator) \
842 bt_message_iterator_put_ref(_message_iterator); \
843 (_message_iterator) = NULL; \
872#define BT_MESSAGE_ITERATOR_MOVE_REF(_dst, _src) \
874 bt_message_iterator_put_ref(_dst); \
int bt_bool
Babeltrace 2 boolean type.
Definition types.h:126
bt_message const ** bt_message_array_const
Array of constant messages.
Definition types.h:182
struct bt_component bt_component
Component.
Definition types.h:24
bt_message_iterator_seek_ns_from_origin_status bt_message_iterator_seek_ns_from_origin(bt_message_iterator *message_iterator, int64_t ns_from_origin)
Makes the message iterator message_iterator seek a message occurring at or after ns_from_origin nanos...
bt_message_iterator_create_from_sink_component_status
Status code for bt_message_iterator_create_from_sink_component().
Definition message-iterator.h:274
bt_message_iterator_can_seek_ns_from_origin_status bt_message_iterator_can_seek_ns_from_origin(bt_message_iterator *message_iterator, int64_t ns_from_origin, bt_bool *can_seek_ns_from_origin)
Returns whether or not the message iterator message_iterator can currently seek a message occurring a...
void bt_message_iterator_put_ref(const bt_message_iterator *message_iterator)
Decrements the reference count of the message iterator message_iterator.
bt_message_iterator_can_seek_beginning_status bt_message_iterator_can_seek_beginning(bt_message_iterator *message_iterator, bt_bool *can_seek_beginning)
Returns whether or not the message iterator message_iterator can currently seek its beginning (first ...
bt_message_iterator_next_status bt_message_iterator_next(bt_message_iterator *message_iterator, bt_message_array_const *messages, uint64_t *count)
Returns the next messages of the message iterator message_iterator into the *messages array of size *...
bt_message_iterator_seek_beginning_status
Status code for bt_message_iterator_seek_beginning().
Definition message-iterator.h:542
bt_message_iterator_seek_ns_from_origin_status
Status code for bt_message_iterator_seek_ns_from_origin().
Definition message-iterator.h:686
bt_message_iterator_create_from_message_iterator_status bt_message_iterator_create_from_message_iterator(bt_self_message_iterator *self_message_iterator, bt_self_component_port_input *port, bt_message_iterator **message_iterator)
Creates a message iterator on the input port port from another message iterator self_message_iterator...
bt_message_iterator_can_seek_beginning_status
Status code for bt_message_iterator_can_seek_beginning().
Definition message-iterator.h:473
void bt_message_iterator_get_ref(const bt_message_iterator *message_iterator)
Increments the reference count of the message iterator message_iterator.
bt_message_iterator_can_seek_ns_from_origin_status
Status code for bt_message_iterator_can_seek_ns_from_origin().
Definition message-iterator.h:608
bt_message_iterator_next_status
Status code for bt_message_iterator_next().
Definition message-iterator.h:371
bt_message_iterator_seek_beginning_status bt_message_iterator_seek_beginning(bt_message_iterator *message_iterator)
Makes the message iterator message_iterator seek its beginning (first message).
struct bt_message_iterator bt_message_iterator
Message iterator.
Definition types.h:59
bt_message_iterator_create_from_sink_component_status bt_message_iterator_create_from_sink_component(bt_self_component_sink *self_component_sink, bt_self_component_port_input *port, bt_message_iterator **message_iterator)
Creates a message iterator on the input port port from the sink component self_component_sink,...
bt_message_iterator_create_from_message_iterator_status
Status code for bt_message_iterator_create_from_message_iterator().
Definition message-iterator.h:209
bt_component * bt_message_iterator_borrow_component(bt_message_iterator *message_iterator)
Borrows the component which provides the message iterator message_iterator.
bt_bool bt_message_iterator_can_seek_forward(bt_message_iterator *message_iterator)
Returns whether or not the message iterator message_iterator can seek forward.
@ BT_MESSAGE_ITERATOR_CREATE_FROM_SINK_COMPONENT_STATUS_ERROR
Other error.
Definition message-iterator.h:291
@ BT_MESSAGE_ITERATOR_CREATE_FROM_SINK_COMPONENT_STATUS_MEMORY_ERROR
Out of memory.
Definition message-iterator.h:285
@ BT_MESSAGE_ITERATOR_CREATE_FROM_SINK_COMPONENT_STATUS_OK
Success.
Definition message-iterator.h:279
@ BT_MESSAGE_ITERATOR_SEEK_BEGINNING_STATUS_OK
Success.
Definition message-iterator.h:547
@ BT_MESSAGE_ITERATOR_SEEK_BEGINNING_STATUS_MEMORY_ERROR
Out of memory.
Definition message-iterator.h:559
@ BT_MESSAGE_ITERATOR_SEEK_BEGINNING_STATUS_ERROR
Other error.
Definition message-iterator.h:565
@ BT_MESSAGE_ITERATOR_SEEK_BEGINNING_STATUS_AGAIN
Try again.
Definition message-iterator.h:553
@ BT_MESSAGE_ITERATOR_SEEK_NS_FROM_ORIGIN_STATUS_OK
Success.
Definition message-iterator.h:691
@ BT_MESSAGE_ITERATOR_SEEK_NS_FROM_ORIGIN_STATUS_AGAIN
Try again.
Definition message-iterator.h:697
@ BT_MESSAGE_ITERATOR_SEEK_NS_FROM_ORIGIN_STATUS_ERROR
Other error.
Definition message-iterator.h:709
@ BT_MESSAGE_ITERATOR_SEEK_NS_FROM_ORIGIN_STATUS_MEMORY_ERROR
Out of memory.
Definition message-iterator.h:703
@ BT_MESSAGE_ITERATOR_CAN_SEEK_BEGINNING_STATUS_ERROR
Other error.
Definition message-iterator.h:496
@ BT_MESSAGE_ITERATOR_CAN_SEEK_BEGINNING_STATUS_AGAIN
Try again.
Definition message-iterator.h:484
@ BT_MESSAGE_ITERATOR_CAN_SEEK_BEGINNING_STATUS_OK
Success.
Definition message-iterator.h:478
@ BT_MESSAGE_ITERATOR_CAN_SEEK_BEGINNING_STATUS_MEMORY_ERROR
Out of memory.
Definition message-iterator.h:490
@ BT_MESSAGE_ITERATOR_CAN_SEEK_NS_FROM_ORIGIN_STATUS_OK
Success.
Definition message-iterator.h:613
@ BT_MESSAGE_ITERATOR_CAN_SEEK_NS_FROM_ORIGIN_STATUS_AGAIN
Try again.
Definition message-iterator.h:619
@ BT_MESSAGE_ITERATOR_CAN_SEEK_NS_FROM_ORIGIN_STATUS_ERROR
Other error.
Definition message-iterator.h:631
@ BT_MESSAGE_ITERATOR_CAN_SEEK_NS_FROM_ORIGIN_STATUS_MEMORY_ERROR
Out of memory.
Definition message-iterator.h:625
@ BT_MESSAGE_ITERATOR_NEXT_STATUS_END
End of iteration.
Definition message-iterator.h:382
@ BT_MESSAGE_ITERATOR_NEXT_STATUS_MEMORY_ERROR
Out of memory.
Definition message-iterator.h:394
@ BT_MESSAGE_ITERATOR_NEXT_STATUS_ERROR
Other error.
Definition message-iterator.h:400
@ BT_MESSAGE_ITERATOR_NEXT_STATUS_AGAIN
Try again.
Definition message-iterator.h:388
@ BT_MESSAGE_ITERATOR_NEXT_STATUS_OK
Success.
Definition message-iterator.h:376
@ BT_MESSAGE_ITERATOR_CREATE_FROM_MESSAGE_ITERATOR_STATUS_MEMORY_ERROR
Out of memory.
Definition message-iterator.h:220
@ BT_MESSAGE_ITERATOR_CREATE_FROM_MESSAGE_ITERATOR_STATUS_OK
Success.
Definition message-iterator.h:214
@ BT_MESSAGE_ITERATOR_CREATE_FROM_MESSAGE_ITERATOR_STATUS_ERROR
Other error.
Definition message-iterator.h:226
struct bt_self_component_port_input bt_self_component_port_input
Self component input port.
Definition types.h:79
struct bt_self_component_sink bt_self_component_sink
Self sink component.
Definition types.h:82
struct bt_self_message_iterator bt_self_message_iterator
Self message iterator.
Definition types.h:86