File: rust-demangle.h

package info (click to toggle)
sysprof 48.0-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 8,924 kB
  • sloc: ansic: 72,988; xml: 168; cpp: 49; sh: 34; makefile: 26
file content (29 lines) | stat: -rw-r--r-- 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
Imported from https://github.com/LykenSol/rust-demangle.c commit 4283d46e4064a7e1c54bc9918a07b066cb43fca3
Modifications from upstream:
* Add sysprof_ prefix to exported symbols and mark them as hidden
* Add pragma once
* Use glib begin/end decls
*/

#pragma once

#include <glib.h>

G_BEGIN_DECLS

#include <stdbool.h>
#include <stddef.h>

#define RUST_DEMANGLE_FLAG_VERBOSE 1

G_GNUC_INTERNAL
bool sysprof_rust_demangle_with_callback(
    const char *mangled, int flags,
    void (*callback)(const char *data, size_t len, void *opaque), void *opaque
);

G_GNUC_INTERNAL
char *sysprof_rust_demangle(const char *mangled, int flags);

G_END_DECLS