2019-05-31 23:57:28 +09:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
typedef struct Opaque Opaque;
|
|
|
|
|
|
|
|
typedef struct Foo {
|
|
|
|
const Opaque *x;
|
|
|
|
Opaque *y;
|
2020-02-15 13:03:44 +08:00
|
|
|
void (*z)(void);
|
2019-05-31 23:57:28 +09:00
|
|
|
} Foo;
|
|
|
|
|
|
|
|
typedef union Bar {
|
|
|
|
const Opaque *x;
|
|
|
|
Opaque *y;
|
2020-02-15 13:03:44 +08:00
|
|
|
void (*z)(void);
|
2019-05-31 23:57:28 +09:00
|
|
|
} Bar;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif // __cplusplus
|
|
|
|
|
|
|
|
void root(const Opaque *a, Opaque *b, Foo c, Bar d);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif // __cplusplus
|