mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-10 13:11:12 +00:00
30 lines
471 B
C
30 lines
471 B
C
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
typedef struct Bar Bar;
|
|
|
|
typedef struct {
|
|
int32_t a;
|
|
uint32_t b;
|
|
} Foo;
|
|
#define Foo_FOO (Foo){ .a = 42, .b = 47 }
|
|
#define Foo_FOO2 (Foo){ .a = 42, .b = 47 }
|
|
#define Foo_FOO3 (Foo){ .a = 42, .b = 47 }
|
|
|
|
|
|
#define BAR (Foo){ .a = 42, .b = 1337 }
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif // __cplusplus
|
|
|
|
void root(Foo x, Bar bar);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif // __cplusplus
|