Static tramp v5 (#624)
[platform/upstream/libffi.git] / include / tramp.h
1 /* -----------------------------------------------------------------------
2    ffi_tramp.h - Copyright (C) 2021  Microsoft, Inc.
3
4    Static trampoline definitions.
5    ----------------------------------------------------------------------- */
6
7 #ifndef FFI_TRAMP_H
8 #define FFI_TRAMP_H
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 int ffi_tramp_is_supported(void);
15 void *ffi_tramp_alloc (int flags);
16 void ffi_tramp_set_parms (void *tramp, void *data, void *code);
17 void *ffi_tramp_get_addr (void *tramp);
18 void ffi_tramp_free (void *tramp);
19
20 #ifdef __cplusplus
21 }
22 #endif
23
24 #endif /* FFI_TRAMP_H */