lib: introduce bt_message_iterator_class
[babeltrace.git] / src / plugins / lttng-utils / debug-info / debug-info.h
CommitLineData
4f45f9bb
JD
1#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_H
2#define BABELTRACE_PLUGIN_DEBUG_INFO_H
3
4/*
58f6d595 5 * Babeltrace - Debug information Plugin
4f45f9bb 6 *
58f6d595 7 * Copyright (c) 2015-2019 EfficiOS Inc.
4f45f9bb 8 * Copyright (c) 2015 Antoine Busque <abusque@efficios.com>
58f6d595 9 * Copyright (c) 2019 Francis Deslauriers francis.deslauriers@efficios.com>
4f45f9bb
JD
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this software and associated documentation files (the "Software"), to deal
13 * in the Software without restriction, including without limitation the rights
14 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 * copies of the Software, and to permit persons to whom the Software is
16 * furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 * SOFTWARE.
28 */
29
4f45f9bb 30#include <stdint.h>
969c1d8a
FD
31#include <stdbool.h>
32
71c5da58 33#include <babeltrace2/babeltrace.h>
969c1d8a 34
85e7137b 35#include "common/macros.h"
4f45f9bb 36
cc5c5d6d
PP
37#define VPID_FIELD_NAME "vpid"
38#define IP_FIELD_NAME "ip"
4f45f9bb 39
58f6d595 40BT_HIDDEN
4175c1d5 41bt_component_class_initialize_method_status debug_info_comp_init(
58f6d595 42 bt_self_component_filter *self_comp,
e3250e61 43 bt_self_component_filter_configuration *config,
58f6d595 44 const bt_value *params, void *init_method_data);
4f45f9bb 45
58f6d595
FD
46BT_HIDDEN
47void debug_info_comp_finalize(bt_self_component_filter *self_comp);
4f45f9bb
JD
48
49BT_HIDDEN
68e2deed 50bt_message_iterator_class_initialize_method_status debug_info_msg_iter_init(
58f6d595 51 bt_self_message_iterator *self_msg_iter,
9415de1c 52 bt_self_message_iterator_configuration *config,
68e2deed 53 bt_self_component *self_comp,
58f6d595 54 bt_self_component_port_output *self_port);
4f45f9bb
JD
55
56BT_HIDDEN
68e2deed 57bt_message_iterator_class_next_method_status debug_info_msg_iter_next(
58f6d595
FD
58 bt_self_message_iterator *self_msg_iter,
59 const bt_message_array_const msgs, uint64_t capacity,
60 uint64_t *count);
4f45f9bb
JD
61
62BT_HIDDEN
68e2deed 63bt_message_iterator_class_can_seek_beginning_method_status
9e8e8b43
SM
64debug_info_msg_iter_can_seek_beginning(
65 bt_self_message_iterator *message_iterator,
66 bt_bool *can_seek);
4f45f9bb
JD
67
68BT_HIDDEN
68e2deed 69bt_message_iterator_class_seek_beginning_method_status debug_info_msg_iter_seek_beginning(
58f6d595 70 bt_self_message_iterator *message_iterator);
4f45f9bb 71
1c78e839 72BT_HIDDEN
58f6d595 73void debug_info_msg_iter_finalize(bt_self_message_iterator *it);
1c78e839 74
4f45f9bb 75#endif /* BABELTRACE_PLUGIN_DEBUG_INFO_H */
This page took 0.065642 seconds and 4 git commands to generate.