.cargo/vendor/cbindgen/tests/expectations/lifetime_arg.both.compat.c
raw| 1 | #include <stdarg.h> |
| 2 | #include <stdbool.h> |
| 3 | #include <stdint.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | typedef struct A { |
| 7 | const int32_t *data; |
| 8 | } A; |
| 9 | |
| 10 | typedef enum E_Tag { |
| 11 | V, |
| 12 | U, |
| 13 | } E_Tag; |
| 14 | |
| 15 | typedef struct E { |
| 16 | E_Tag tag; |
| 17 | union { |
| 18 | struct { |
| 19 | const uint8_t *u; |
| 20 | }; |
| 21 | }; |
| 22 | } E; |
| 23 | |
| 24 | #ifdef __cplusplus |
| 25 | extern "C" { |
| 26 | #endif // __cplusplus |
| 27 | |
| 28 | void root(struct A _a, struct E _e); |
| 29 | |
| 30 | #ifdef __cplusplus |
| 31 | } // extern "C" |
| 32 | #endif // __cplusplus |