31 lines
725 B
C
31 lines
725 B
C
|
#ifndef _SCRIPT_H_
|
|||
|
#define _SCRIPT_H_
|
|||
|
|
|||
|
#define MAX_PATH 260
|
|||
|
#define ITEM_MAIN_NAME_MAX 32
|
|||
|
|
|||
|
#define DATA_COUNT_MAX (4)
|
|||
|
#define DATA_TYPE_SINGLE_WORD (1)
|
|||
|
#define DATA_TYPE_STRING (2)
|
|||
|
#define DATA_TYPE_MULTI_WORD (3)
|
|||
|
#define DATA_TYPE_GPIO (4)
|
|||
|
#define DATA_EMPTY (5)
|
|||
|
typedef struct _script_item
|
|||
|
{
|
|||
|
char item_name[ITEM_MAIN_NAME_MAX]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
int item_length; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD>ĸ<EFBFBD><C4B8><EFBFBD>
|
|||
|
int item_offset; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1>ʼ<EFBFBD><CABC>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD>
|
|||
|
}
|
|||
|
script_item_t;
|
|||
|
|
|||
|
typedef struct _script_head
|
|||
|
{
|
|||
|
unsigned item_num;
|
|||
|
unsigned length;
|
|||
|
unsigned version[2];
|
|||
|
}
|
|||
|
script_head_t;
|
|||
|
|
|||
|
#endif //_SCRIPT_H_
|
|||
|
|