mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-05 10:39:41 +00:00
46 lines
878 B
C
46 lines
878 B
C
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
#define PREFIX_LEN 22
|
|
|
|
#define PREFIX_X (22 << 22)
|
|
|
|
#define PREFIX_Y (PREFIX_X + PREFIX_X)
|
|
|
|
typedef int32_t PREFIX_NamedLenArray[PREFIX_LEN];
|
|
|
|
typedef int32_t PREFIX_ValuedLenArray[22];
|
|
|
|
enum PREFIX_AbsoluteFontWeight_Tag
|
|
#ifdef __cplusplus
|
|
: uint8_t
|
|
#endif // __cplusplus
|
|
{
|
|
Weight,
|
|
Normal,
|
|
Bold,
|
|
};
|
|
#ifndef __cplusplus
|
|
typedef uint8_t PREFIX_AbsoluteFontWeight_Tag;
|
|
#endif // __cplusplus
|
|
|
|
typedef union PREFIX_AbsoluteFontWeight {
|
|
PREFIX_AbsoluteFontWeight_Tag tag;
|
|
struct {
|
|
PREFIX_AbsoluteFontWeight_Tag weight_tag;
|
|
float weight;
|
|
};
|
|
} PREFIX_AbsoluteFontWeight;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif // __cplusplus
|
|
|
|
void root(PREFIX_NamedLenArray x, PREFIX_ValuedLenArray y, union PREFIX_AbsoluteFontWeight z);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif // __cplusplus
|