Commit | Line | Data |
---|---|---|
e98a2d6e | 1 | /* |
0235b0db | 2 | * SPDX-License-Identifier: MIT |
e98a2d6e | 3 | * |
0235b0db | 4 | * Copyright 2017 Philippe Proulx <pproulx@efficios.com> |
e98a2d6e PP |
5 | */ |
6 | ||
0235b0db MJ |
7 | #ifndef BABELTRACE_PLUGIN_TEXT_DMESG_DMESG_H |
8 | #define BABELTRACE_PLUGIN_TEXT_DMESG_DMESG_H | |
9 | ||
d8866baa | 10 | #include <stdbool.h> |
91d81473 | 11 | #include "common/macros.h" |
3fadfbc0 | 12 | #include <babeltrace2/babeltrace.h> |
e98a2d6e PP |
13 | |
14 | BT_HIDDEN | |
21a9f056 | 15 | bt_component_class_initialize_method_status dmesg_init( |
b19ff26f | 16 | bt_self_component_source *self_comp, |
59225a3e | 17 | bt_self_component_source_configuration *config, |
b19ff26f | 18 | const bt_value *params, void *init_method_data); |
e98a2d6e PP |
19 | |
20 | BT_HIDDEN | |
b19ff26f | 21 | void dmesg_finalize(bt_self_component_source *self_comp); |
e98a2d6e | 22 | |
33f93973 | 23 | BT_HIDDEN |
a3f0c7db | 24 | bt_message_iterator_class_initialize_method_status dmesg_msg_iter_init( |
d6e69534 | 25 | bt_self_message_iterator *self_msg_iter, |
8d8b141d | 26 | bt_self_message_iterator_configuration *config, |
b19ff26f | 27 | bt_self_component_port_output *self_port); |
33f93973 PP |
28 | |
29 | BT_HIDDEN | |
d6e69534 PP |
30 | void dmesg_msg_iter_finalize( |
31 | bt_self_message_iterator *self_msg_iter); | |
33f93973 PP |
32 | |
33 | BT_HIDDEN | |
a3f0c7db | 34 | bt_message_iterator_class_next_method_status dmesg_msg_iter_next( |
d6e69534 PP |
35 | bt_self_message_iterator *self_msg_iter, |
36 | bt_message_array_const msgs, uint64_t capacity, | |
d4393e08 | 37 | uint64_t *count); |
33f93973 | 38 | |
2d6bab5c | 39 | BT_HIDDEN |
a3f0c7db | 40 | bt_message_iterator_class_can_seek_beginning_method_status |
f2fb1b32 SM |
41 | dmesg_msg_iter_can_seek_beginning( |
42 | bt_self_message_iterator *message_iterator, bt_bool *can_seek); | |
2d6bab5c PP |
43 | |
44 | BT_HIDDEN | |
a3f0c7db | 45 | bt_message_iterator_class_seek_beginning_method_status dmesg_msg_iter_seek_beginning( |
2d6bab5c PP |
46 | bt_self_message_iterator *message_iterator); |
47 | ||
d8866baa | 48 | #endif /* BABELTRACE_PLUGIN_TEXT_DMESG_DMESG_H */ |