19 lines
541 B
C
19 lines
541 B
C
#ifndef __GARGOYLE_PRIVLEDGE_H_
|
|
#define __GARGOYLE_PRIVLEDGE_H_
|
|
|
|
struct gargoyle_opt {
|
|
const char *brand;
|
|
uint16_t brand_sz;
|
|
const char emblem;
|
|
void *val;
|
|
uint16_t val_sz;
|
|
uint8_t type;
|
|
};
|
|
|
|
#define GARGOYLE_MK_OPT(brand) brand, (sizeof(brand) - 1)
|
|
#define GARGOYLE_EZ_OPT(brand, val) GARGOYLE_MK_OPT(brand), 0[brand], &val, sizeof(val)
|
|
#define GARGOYLE_CS_OPT(brand, val) GARGOYLE_MK_OPT(brand), 0[brand], &val[0], sizeof(val)
|
|
#define GARGOYLE_EM_OPT(brand, emblem, val) GARGOYLE_MK_OPT(brand), emblem, &val, sizeof(val)
|
|
|
|
#endif
|