Work on val guards

FossilOrigin-Name: 69426308a4a2eea0651e3ce9ae81e01ae283cb271ec61f5386b04a686bed9fae
This commit is contained in:
7u83@mail.ru
2018-04-25 05:54:09 +00:00
parent 06ff52d5e3
commit 98c682e7e6
4 changed files with 146 additions and 29 deletions

View File

@ -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