libsmbios_c library
Macros | Functions
smbios.h File Reference
#include "smbios_c/compat.h"
#include "smbios_c/types.h"
#include "smbios_c/config/abi_prefix.h"
#include "smbios_c/config/abi_suffix.h"
Include dependency graph for smbios.h:

Go to the source code of this file.

Macros

#define SMBIOS_DEFAULTS   0x0000
 
#define SMBIOS_GET_SINGLETON   0x0001
 
#define SMBIOS_GET_NEW   0x0002
 
#define SMBIOS_UNIT_TEST_MODE   0x0004
 
#define SMBIOS_NO_FIXUPS   0x0008
 
#define SMBIOS_NO_ERR_CLEAR   0x0010
 
#define smbios_table_for_each_struct(table_name, struct_name)
 
#define smbios_table_for_each_struct_type(table_name, struct_name, struct_type)
 

Functions

LIBSMBIOS_C_DLL_SPEC struct smbios_table * smbios_table_factory (int flags,...)
 
LIBSMBIOS_C_DLL_SPEC void smbios_table_free (struct smbios_table *)
 
LIBSMBIOS_C_DLL_SPEC const char * smbios_table_strerror (const struct smbios_table *)
 
LIBSMBIOS_C_DLL_SPEC void smbios_table_walk (struct smbios_table *, void(*smbios_table_walk_fn)(const struct smbios_struct *, void *userdata), void *userdata)
 
LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_table_get_next_struct (const struct smbios_table *, const struct smbios_struct *cur)
 
LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_table_get_next_struct_by_type (const struct smbios_table *, const struct smbios_struct *cur, u8 type)
 
LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_table_get_next_struct_by_handle (const struct smbios_table *, const struct smbios_struct *cur, u16 handle)
 

Macro Definition Documentation

◆ SMBIOS_DEFAULTS

#define SMBIOS_DEFAULTS   0x0000

◆ SMBIOS_GET_NEW

#define SMBIOS_GET_NEW   0x0002

◆ SMBIOS_GET_SINGLETON

#define SMBIOS_GET_SINGLETON   0x0001

◆ SMBIOS_NO_ERR_CLEAR

#define SMBIOS_NO_ERR_CLEAR   0x0010

◆ SMBIOS_NO_FIXUPS

#define SMBIOS_NO_FIXUPS   0x0008

◆ smbios_table_for_each_struct

#define smbios_table_for_each_struct (   table_name,
  struct_name 
)
Value:
for( \
const struct smbios_struct *struct_name = smbios_table_get_next_struct(table_name, 0);\
struct_name;\
struct_name = smbios_table_get_next_struct(table_name, struct_name)\
)
LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_table_get_next_struct(const struct smbios_table *, const struct smbios_struct *cur)

◆ smbios_table_for_each_struct_type

#define smbios_table_for_each_struct_type (   table_name,
  struct_name,
  struct_type 
)
Value:
for( \
const struct smbios_struct *struct_name = smbios_table_get_next_struct_by_type(table_name, 0, struct_type);\
struct_name;\
struct_name = smbios_table_get_next_struct_by_type(table_name, struct_name, struct_type)\
)
LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_table_get_next_struct_by_type(const struct smbios_table *, const struct smbios_struct *cur, u8 type)

◆ SMBIOS_UNIT_TEST_MODE

#define SMBIOS_UNIT_TEST_MODE   0x0004

Function Documentation

◆ smbios_table_factory()

LIBSMBIOS_C_DLL_SPEC struct smbios_table * smbios_table_factory ( int  flags,
  ... 
)

◆ smbios_table_free()

LIBSMBIOS_C_DLL_SPEC void smbios_table_free ( struct smbios_table *  )

◆ smbios_table_get_next_struct()

LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_table_get_next_struct ( const struct smbios_table *  ,
const struct smbios_struct *  cur 
)

◆ smbios_table_get_next_struct_by_handle()

LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_table_get_next_struct_by_handle ( const struct smbios_table *  ,
const struct smbios_struct *  cur,
u16  handle 
)

◆ smbios_table_get_next_struct_by_type()

LIBSMBIOS_C_DLL_SPEC struct smbios_struct * smbios_table_get_next_struct_by_type ( const struct smbios_table *  ,
const struct smbios_struct *  cur,
u8  type 
)

◆ smbios_table_strerror()

LIBSMBIOS_C_DLL_SPEC const char * smbios_table_strerror ( const struct smbios_table *  )

◆ smbios_table_walk()

LIBSMBIOS_C_DLL_SPEC void smbios_table_walk ( struct smbios_table *  ,
void(*)(const struct smbios_struct *, void *userdata)  smbios_table_walk_fn,
void *  userdata 
)