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