31#define TOKEN_DEFAULTS 0x0000
32#define TOKEN_GET_SINGLETON 0x0001
33#define TOKEN_GET_NEW 0x0002
34#define TOKEN_UNIT_TEST_MODE 0x0004
35#define TOKEN_NO_ERR_CLEAR 0x0008
56#define token_table_for_each(table_name, struct_name) \
58 const struct token_obj *struct_name = token_table_get_next(table_name, 0);\
60 struct_name = token_table_get_next(table_name, struct_name)\
63#define token_table_for_each_id(table_name, struct_name, id) \
65 const struct token_obj *struct_name = token_table_get_next_id(table_name, 0, id);\
67 struct_name = token_table_get_next_id(table_name, struct_name, id)\
#define LIBSMBIOS_C_DLL_SPEC
Definition compat.h:48
#define EXTERN_C_BEGIN
Definition compat.h:55
#define EXTERN_C_END
Definition compat.h:56
@ CHECK_TYPE_WORD_CRC
Definition token.h:159
@ CHECK_TYPE_WORD_CHECKSUM
Definition token.h:157
@ CHECK_TYPE_WORD_CHECKSUM_N
Definition token.h:160
@ CHECK_TYPE_BYTE_CHECKSUM
Definition token.h:158
LIBSMBIOS_C_DLL_SPEC const struct token_obj * token_table_get_next(const struct token_table *, const struct token_obj *cur)
LIBSMBIOS_C_DLL_SPEC const void * token_obj_get_ptr(const struct token_obj *t)
LIBSMBIOS_C_DLL_SPEC void token_table_free(struct token_table *)
LIBSMBIOS_C_DLL_SPEC int token_obj_get_type(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC int token_obj_set_string(const struct token_obj *, const char *, size_t size)
LIBSMBIOS_C_DLL_SPEC const struct smbios_struct * token_obj_get_smbios_struct(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC int token_obj_activate(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC bool token_obj_is_string(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC int token_obj_try_password(const struct token_obj *, const char *pass_ascii, const char *pass_scancode)
LIBSMBIOS_C_DLL_SPEC const char * token_obj_strerror(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC bool token_obj_is_bool(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC char * token_obj_get_string(const struct token_obj *, size_t *len)
struct indexed_io_token LIBSMBIOS_C_PACKED_ATTR
LIBSMBIOS_C_DLL_SPEC const char * token_table_strerror(const struct token_table *)
LIBSMBIOS_C_DLL_SPEC struct token_table * token_table_factory(int flags,...)
LIBSMBIOS_C_DLL_SPEC const struct token_obj * token_table_get_next_by_id(const struct token_table *, const struct token_obj *cur, u16 id)
LIBSMBIOS_C_DLL_SPEC int token_obj_is_active(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC u16 token_obj_get_id(const struct token_obj *)
u16 dataPort
Definition token.h:124
u8 valueStartIndex
Definition token.h:126
u16 indexPort
Definition token.h:123
u16 validationKey
Definition token.h:122
u8 length
Definition token.h:117
u8 checkType
Definition token.h:125
u8 valueFormat
Definition token.h:121
u16 tokenId
Definition token.h:119
u8 checkIndex
Definition token.h:127
u8 type
Definition token.h:116
u16 handle
Definition token.h:118
u8 valueLen
Definition token.h:120
u8 checkIndex
Definition token.h:144
u8 rangeCheckIndex
Definition token.h:148
u8 valueStartIndex
Definition token.h:143
u16 tokenId
Definition token.h:136
u8 type
Definition token.h:133
u8 length
Definition token.h:134
u16 indexPort
Definition token.h:140
u8 valueFormat
Definition token.h:138
u16 handle
Definition token.h:135
u8 rangeCheckType
Definition token.h:145
u8 rangeCheckStart
Definition token.h:146
u16 dataPort
Definition token.h:141
u16 validationKey
Definition token.h:139
u8 rangeCheckEnd
Definition token.h:147
u8 valueLen
Definition token.h:137
u8 checkType
Definition token.h:142
u8 checkedRangeEndIndex
Definition token.h:107
u16 dataPort
Definition token.h:104
u8 length
Definition token.h:101
struct indexed_io_token tokens[]
Definition token.h:110
u8 checkedRangeStartIndex
Definition token.h:106
u16 indexPort
Definition token.h:103
u8 type
Definition token.h:100
u8 checkType
Definition token.h:105
u8 checkValueIndex
Definition token.h:108
u16 handle
Definition token.h:102
u8 location
Definition token.h:89
u8 stringLength
Definition token.h:93
u16 tokenId
Definition token.h:88
u8 andMask
Definition token.h:90
u8 orValue
Definition token.h:92
unsigned short u16
Definition types.h:33
unsigned char u8
Definition types.h:29