Debian Codegraph @

contrib/elfparser/rust-demangle.h

raw
1 /*
2 Imported from https://github.com/LykenSol/rust-demangle.c commit 4283d46e4064a7e1c54bc9918a07b066cb43fca3
3 Modifications from upstream:
4 * Add sysprof_ prefix to exported symbols and mark them as hidden
5 * Add pragma once
6 * Use glib begin/end decls
7 */
8
9 #pragma once
10
11 #include <glib.h>
12
13 G_BEGIN_DECLS
14
15 #include <stdbool.h>
16 #include <stddef.h>
17
18 #define RUST_DEMANGLE_FLAG_VERBOSE 1
19
20 G_GNUC_INTERNAL
21 bool sysprof_rust_demangle_with_callback(
22 const char *mangled, int flags,
23 void (*callback)(const char *data, size_t len, void *opaque), void *opaque
24 );
25
26 G_GNUC_INTERNAL
27 char *sysprof_rust_demangle(const char *mangled, int flags);
28
29 G_END_DECLS