73#define smbios_for_each_struct(struct_name) \
75 const struct smbios_struct *struct_name = smbios_get_next_struct(0);\
77 struct_name = smbios_get_next_struct(struct_name)\
84#define smbios_for_each_struct_type(struct_name, struct_type) \
86 const struct smbios_struct *struct_name = smbios_get_next_struct_by_type(0, struct_type);\
88 struct_name = smbios_get_next_struct_by_type(struct_name, struct_type)\
#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
LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_get_next_struct_by_type(const struct smbios_struct *cur, u8 type)
Function for looping over smbios table structures by type.
LIBSMBIOS_C_DLL_SPEC int smbios_struct_get_data(const struct smbios_struct *s, void *dest, u8 offset, size_t len)
Copy data out of the smbios structure.
LIBSMBIOS_C_DLL_SPEC const char * smbios_struct_get_string_from_offset(const struct smbios_struct *s, u8 offset)
get string from smbios structure.
LIBSMBIOS_C_DLL_SPEC u8 smbios_struct_get_length(const struct smbios_struct *)
Returns the structure length of a given smbios structure.
LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_get_next_struct_by_handle(const struct smbios_struct *cur, u16 handle)
Function for looping over smbios table structures by handle.
LIBSMBIOS_C_DLL_SPEC u16 smbios_struct_get_handle(const struct smbios_struct *)
Returns the structure handle of a given smbios structure.
LIBSMBIOS_C_DLL_SPEC void smbios_walk(void(*fn)(const struct smbios_struct *, void *userdata), void *userdata)
Call a named function for each smbios structure.
LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_get_next_struct(const struct smbios_struct *cur)
Function for looping over smbios table structures.
LIBSMBIOS_C_DLL_SPEC const char * smbios_struct_get_string_number(const struct smbios_struct *s, u8 which)
get string from smbios structure.
LIBSMBIOS_C_DLL_SPEC u8 smbios_struct_get_type(const struct smbios_struct *)
Returns the structure type of a given smbios structure.
LIBSMBIOS_C_DLL_SPEC char * smbios_strerror()
Returns string describing the last error condition.
unsigned short u16
Definition types.h:33
unsigned char u8
Definition types.h:29