Commit | Line | Data |
---|---|---|
71a559f8 | 1 | /* |
ab5be9fa | 2 | * Copyright (C) 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
71a559f8 | 3 | * |
ab5be9fa | 4 | * SPDX-License-Identifier: GPL-2.0-only |
71a559f8 | 5 | * |
71a559f8 JG |
6 | */ |
7 | ||
8 | #ifndef LTTNG_COMMON_FILTER_H | |
9 | #define LTTNG_COMMON_FILTER_H | |
10 | ||
11 | #include <common/sessiond-comm/sessiond-comm.h> | |
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 | */ | |
4af1498e | 19 | LTTNG_HIDDEN |
71a559f8 | 20 | struct bytecode_symbol_iterator *bytecode_symbol_iterator_create( |
2b00d462 | 21 | struct lttng_bytecode *bytecode); |
71a559f8 JG |
22 | |
23 | /* | |
24 | * Advance iterator of one element. | |
25 | * | |
26 | * Returns 0 if a next element exists or a negative value at the end. | |
27 | */ | |
4af1498e | 28 | LTTNG_HIDDEN |
71a559f8 JG |
29 | int bytecode_symbol_iterator_next(struct bytecode_symbol_iterator *it); |
30 | ||
4af1498e | 31 | LTTNG_HIDDEN |
71a559f8 JG |
32 | int bytecode_symbol_iterator_get_type(struct bytecode_symbol_iterator *it); |
33 | ||
4af1498e | 34 | LTTNG_HIDDEN |
71a559f8 JG |
35 | const char *bytecode_symbol_iterator_get_name( |
36 | struct bytecode_symbol_iterator *it); | |
37 | ||
4af1498e | 38 | LTTNG_HIDDEN |
71a559f8 JG |
39 | void bytecode_symbol_iterator_destroy(struct bytecode_symbol_iterator *it); |
40 | ||
41 | #endif /* LTTNG_COMMON_FILTER_H */ |