Work on val guards
FossilOrigin-Name: 69426308a4a2eea0651e3ce9ae81e01ae283cb271ec61f5386b04a686bed9fae
This commit is contained in:
28
src/cw/ktv.h
28
src/cw/ktv.h
@ -44,6 +44,9 @@ struct cw_KTV {
|
||||
};
|
||||
typedef struct cw_KTV cw_KTV_t;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @class cw_Type
|
||||
* @author 7u83
|
||||
@ -93,6 +96,31 @@ struct cw_KTVStruct {
|
||||
int position;
|
||||
};
|
||||
|
||||
|
||||
enum cw_Types {
|
||||
CW_BYTE,
|
||||
CW_WORD,
|
||||
CW_DWORD,
|
||||
CW_STR
|
||||
|
||||
};
|
||||
|
||||
|
||||
struct cw_KTVValRange {
|
||||
int min,max;
|
||||
const char * name;
|
||||
};
|
||||
typedef struct cw_KTVValRange cw_KTVValRange_t;
|
||||
|
||||
struct cw_KTVData {
|
||||
int position;
|
||||
uint8_t type;
|
||||
const char *key;
|
||||
int len;
|
||||
struct cw_KTVValRange *ranges;
|
||||
};
|
||||
typedef struct cw_KTVData cw_KTVData_t;
|
||||
|
||||
typedef struct cw_KTVStruct cw_KTVStruct_t;
|
||||
|
||||
#define CW_KTVSTRUCT_L16 -2
|
||||
|
Reference in New Issue
Block a user