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