2 * Copyright (C) 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 #ifndef LTTNG_COMMON_FILTER_H
9 #define LTTNG_COMMON_FILTER_H
11 #include <common/sessiond-comm/sessiond-comm.hpp>
13 struct bytecode_symbol_iterator;
16 * Create an iterator on a bytecode's symbols. The iterator points to the
17 * first element after creation.
19 struct bytecode_symbol_iterator *bytecode_symbol_iterator_create(
20 struct lttng_bytecode *bytecode);
23 * Advance iterator of one element.
25 * Returns 0 if a next element exists or a negative value at the end.
27 int bytecode_symbol_iterator_next(struct bytecode_symbol_iterator *it);
29 int bytecode_symbol_iterator_get_type(struct bytecode_symbol_iterator *it);
31 const char *bytecode_symbol_iterator_get_name(
32 struct bytecode_symbol_iterator *it);
34 void bytecode_symbol_iterator_destroy(struct bytecode_symbol_iterator *it);
36 #endif /* LTTNG_COMMON_FILTER_H */