00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef C_TOKEN_H
00020 #define C_TOKEN_H
00021
00022
00023 #include "smbios_c/compat.h"
00024 #include "smbios_c/types.h"
00025
00026 EXTERN_C_BEGIN;
00027
00028 #define TOKEN_TYPE_D4 0xD4
00029 #define TOKEN_TYPE_D5 0xD5
00030 #define TOKEN_TYPE_D6 0xD6
00031 #define TOKEN_TYPE_DA 0xDA
00032
00037 LIBSMBIOS_C_DLL_SPEC const char * token_strerror();
00038
00043 LIBSMBIOS_C_DLL_SPEC int token_get_type(u16 id);
00044
00048 LIBSMBIOS_C_DLL_SPEC bool token_is_bool(u16 id);
00049
00053 LIBSMBIOS_C_DLL_SPEC int token_is_active(u16 id);
00054
00058 LIBSMBIOS_C_DLL_SPEC int token_activate(u16 id);
00059
00063 LIBSMBIOS_C_DLL_SPEC bool token_is_string(u16 id);
00064
00074 LIBSMBIOS_C_DLL_SPEC char * token_get_string(u16 id, size_t *len);
00075
00082 LIBSMBIOS_C_DLL_SPEC int token_set_string(u16 id, const char *value, size_t size);
00083
00088 LIBSMBIOS_C_DLL_SPEC void token_string_free(char *);
00089
00092 LIBSMBIOS_C_DLL_SPEC const struct smbios_struct * token_get_smbios_struct(u16 id);
00093
00096 LIBSMBIOS_C_DLL_SPEC const void * token_get_ptr(u16 id);
00097
00100 LIBSMBIOS_C_DLL_SPEC int token_try_password(u16 id, const char *pass_ascii, const char *pass_scancode);
00101
00102
00103 EXTERN_C_END;
00104
00105 #endif