| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright 2017 Philippe Proulx <pproulx@efficios.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef BABELTRACE_PLUGIN_TEXT_DMESG_DMESG_H |
| 8 | #define BABELTRACE_PLUGIN_TEXT_DMESG_DMESG_H |
| 9 | |
| 10 | #include <stdbool.h> |
| 11 | #include "common/macros.h" |
| 12 | #include <babeltrace2/babeltrace.h> |
| 13 | |
| 14 | bt_component_class_initialize_method_status dmesg_init( |
| 15 | bt_self_component_source *self_comp, |
| 16 | bt_self_component_source_configuration *config, |
| 17 | const bt_value *params, void *init_method_data); |
| 18 | |
| 19 | void dmesg_finalize(bt_self_component_source *self_comp); |
| 20 | |
| 21 | bt_message_iterator_class_initialize_method_status dmesg_msg_iter_init( |
| 22 | bt_self_message_iterator *self_msg_iter, |
| 23 | bt_self_message_iterator_configuration *config, |
| 24 | bt_self_component_port_output *self_port); |
| 25 | |
| 26 | void dmesg_msg_iter_finalize( |
| 27 | bt_self_message_iterator *self_msg_iter); |
| 28 | |
| 29 | bt_message_iterator_class_next_method_status dmesg_msg_iter_next( |
| 30 | bt_self_message_iterator *self_msg_iter, |
| 31 | bt_message_array_const msgs, uint64_t capacity, |
| 32 | uint64_t *count); |
| 33 | |
| 34 | bt_message_iterator_class_can_seek_beginning_method_status |
| 35 | dmesg_msg_iter_can_seek_beginning( |
| 36 | bt_self_message_iterator *message_iterator, bt_bool *can_seek); |
| 37 | |
| 38 | bt_message_iterator_class_seek_beginning_method_status dmesg_msg_iter_seek_beginning( |
| 39 | bt_self_message_iterator *message_iterator); |
| 40 | |
| 41 | #endif /* BABELTRACE_PLUGIN_TEXT_DMESG_DMESG_H */ |