ae061fd9390ec7f59001c79a3c4ca07bb1e2430b
[lttng-tools.git] / src / common / filter.hpp
1 /*
2 * Copyright (C) 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8 #ifndef LTTNG_COMMON_FILTER_H
9 #define LTTNG_COMMON_FILTER_H
10
11 #include <common/sessiond-comm/sessiond-comm.hpp>
12
13 struct bytecode_symbol_iterator;
14
15 /*
16 * Create an iterator on a bytecode's symbols. The iterator points to the
17 * first element after creation.
18 */
19 struct bytecode_symbol_iterator *bytecode_symbol_iterator_create(struct lttng_bytecode *bytecode);
20
21 /*
22 * Advance iterator of one element.
23 *
24 * Returns 0 if a next element exists or a negative value at the end.
25 */
26 int bytecode_symbol_iterator_next(struct bytecode_symbol_iterator *it);
27
28 int bytecode_symbol_iterator_get_type(struct bytecode_symbol_iterator *it);
29
30 const char *bytecode_symbol_iterator_get_name(struct bytecode_symbol_iterator *it);
31
32 void bytecode_symbol_iterator_destroy(struct bytecode_symbol_iterator *it);
33
34 #endif /* LTTNG_COMMON_FILTER_H */
This page took 0.037816 seconds and 5 git commands to generate.