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 | ||
7966af57 SM |
13 | #ifdef __cplusplus |
14 | extern "C" { | |
15 | #endif | |
16 | ||
71a559f8 JG |
17 | struct bytecode_symbol_iterator; |
18 | ||
19 | /* | |
20 | * Create an iterator on a bytecode's symbols. The iterator points to the | |
21 | * first element after creation. | |
22 | */ | |
23 | struct bytecode_symbol_iterator *bytecode_symbol_iterator_create( | |
2b00d462 | 24 | struct lttng_bytecode *bytecode); |
71a559f8 JG |
25 | |
26 | /* | |
27 | * Advance iterator of one element. | |
28 | * | |
29 | * Returns 0 if a next element exists or a negative value at the end. | |
30 | */ | |
31 | int bytecode_symbol_iterator_next(struct bytecode_symbol_iterator *it); | |
32 | ||
33 | int bytecode_symbol_iterator_get_type(struct bytecode_symbol_iterator *it); | |
34 | ||
35 | const char *bytecode_symbol_iterator_get_name( | |
36 | struct bytecode_symbol_iterator *it); | |
37 | ||
38 | void bytecode_symbol_iterator_destroy(struct bytecode_symbol_iterator *it); | |
39 | ||
7966af57 SM |
40 | #ifdef __cplusplus |
41 | } | |
42 | #endif | |
43 | ||
71a559f8 | 44 | #endif /* LTTNG_COMMON_FILTER_H */ |