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)\
151 #if defined(_MSC_VER)
u16 handle
Definition: token.h:118
u16 validationKey
Definition: token.h:139
u8 stringLength
Definition: token.h:93
LIBSMBIOS_C_DLL_SPEC bool token_obj_is_bool(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC const void * token_obj_get_ptr(const struct token_obj *t)
u8 checkIndex
Definition: token.h:127
u16 handle
Definition: token.h:135
struct indexed_io_token tokens[]
Definition: token.h:110
u16 indexPort
Definition: token.h:123
LIBSMBIOS_C_DLL_SPEC int token_obj_activate(const struct token_obj *)
u8 type
Definition: token.h:116
u16 dataPort
Definition: token.h:124
u8 checkValueIndex
Definition: token.h:108
u16 validationKey
Definition: token.h:122
u16 dataPort
Definition: token.h:141
u8 valueStartIndex
Definition: token.h:143
u8 length
Definition: token.h:134
u8 length
Definition: token.h:117
u8 checkType
Definition: token.h:125
#define LIBSMBIOS_C_DLL_SPEC
Definition: compat.h:48
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)
u8 valueLen
Definition: token.h:137
u16 tokenId
Definition: token.h:136
u16 tokenId
Definition: token.h:88
LIBSMBIOS_C_DLL_SPEC const char * token_table_strerror(const struct token_table *)
u8 checkType
Definition: token.h:142
u8 orValue
Definition: token.h:92
u8 checkedRangeStartIndex
Definition: token.h:106
u16 tokenId
Definition: token.h:119
LIBSMBIOS_C_DLL_SPEC const struct smbios_struct * token_obj_get_smbios_struct(const struct token_obj *)
u8 rangeCheckIndex
Definition: token.h:148
LIBSMBIOS_C_DLL_SPEC u16 token_obj_get_id(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC void token_table_free(struct token_table *)
u8 valueLen
Definition: token.h:120
LIBSMBIOS_C_DLL_SPEC char * token_obj_get_string(const struct token_obj *, size_t *len)
u8 checkIndex
Definition: token.h:144
u8 valueStartIndex
Definition: token.h:126
u16 indexPort
Definition: token.h:140
u8 type
Definition: token.h:100
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 int token_obj_set_string(const struct token_obj *, const char *, size_t size)
u8 rangeCheckEnd
Definition: token.h:147
LIBSMBIOS_C_DLL_SPEC int token_obj_get_type(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC int token_obj_is_active(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC const char * token_obj_strerror(const struct token_obj *)
LIBSMBIOS_C_DLL_SPEC struct token_table * token_table_factory(int flags,...)
u8 type
Definition: token.h:133
u8 andMask
Definition: token.h:90
#define EXTERN_C_BEGIN
Definition: compat.h:55
u8 valueFormat
Definition: token.h:121
LIBSMBIOS_C_DLL_SPEC bool token_obj_is_string(const struct token_obj *)
unsigned short u16
Definition: types.h:33
u16 indexPort
Definition: token.h:103
u8 rangeCheckStart
Definition: token.h:146
unsigned char u8
Definition: types.h:29
u16 dataPort
Definition: token.h:104
u8 checkType
Definition: token.h:105
struct indexed_io_token LIBSMBIOS_C_PACKED_ATTR
u8 rangeCheckType
Definition: token.h:145
u8 location
Definition: token.h:89
LIBSMBIOS_C_DLL_SPEC int token_obj_try_password(const struct token_obj *, const char *pass_ascii, const char *pass_scancode)
u8 checkedRangeEndIndex
Definition: token.h:107
#define EXTERN_C_END
Definition: compat.h:56
u8 valueFormat
Definition: token.h:138
u8 length
Definition: token.h:101
u16 handle
Definition: token.h:102