#include "smbios_c/compat.h"
#include "smbios_c/types.h"
Go to the source code of this file.
Defines | |
#define | TOKEN_TYPE_D4 0xD4 |
#define | TOKEN_TYPE_D5 0xD5 |
#define | TOKEN_TYPE_D6 0xD6 |
#define | TOKEN_TYPE_DA 0xDA |
Functions | |
const char *DLL_SPEC | token_strerror () |
Returns string describing the last error condition. | |
int DLL_SPEC | token_get_type (u16 id) |
Return token type. | |
bool DLL_SPEC | token_is_bool (u16 id) |
Check if a token is a boolean-type token. | |
int DLL_SPEC | token_is_active (u16 id) |
Check if a boolean token is currently set. | |
int DLL_SPEC | token_activate (u16 id) |
Activate a boolean token. | |
bool DLL_SPEC | token_is_string (u16 id) |
Check if a token is a string-type token. | |
char *DLL_SPEC | token_get_string (u16 id, size_t *len) |
Get a new buffer containing the token string value. | |
int DLL_SPEC | token_set_string (u16 id, const char *value, size_t size) |
Set a string token value. | |
void DLL_SPEC | token_string_free (char *) |
Free allocated memory. | |
const struct smbios_struct *DLL_SPEC | token_get_smbios_struct (u16 id) |
Get a pointer to the smbios struct containing this token. | |
const void *DLL_SPEC | token_get_ptr (u16 id) |
Get a pointer to the actual token structure. | |
DLL_SPEC int | token_try_password (u16 id, const char *pass_ascii, const char *pass_scancode) |
For tokens that are password protected, check password. |
|
|
|
|
|
|
|
|
|
Activate a boolean token.
|
|
Get a pointer to the actual token structure.
|
|
Get a pointer to the smbios struct containing this token.
|
|
Get a new buffer containing the token string value.
|
|
Return token type. tokens can be 0xD4, 0xD5, 0xD6, or 0xDA tokens, depending on the smbios table structure they come from. |
|
Check if a boolean token is currently set.
|
|
Check if a token is a boolean-type token.
|
|
Check if a token is a string-type token.
|
|
Set a string token value.
|
|
Returns string describing the last error condition. Can return 0. The buffer used is guaranteed to be valid until the next call to any token_* function. Copy the contents if you need it longer. |
|
Free allocated memory. Use this to free any memory buffer pointers that you get from this module. For example, token_get_string(...) |
|
For tokens that are password protected, check password.
|