lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
Core Parsing Helpers

Whole-table parsing and SMBIOS version reporting. More...

Enumerations

enum  lazybiosFieldStatusValue_t { LAZYBIOS_FIELD_ABSENT = 0 , LAZYBIOS_FIELD_PRESENT , LAZYBIOS_FIELD_UNREACHABLE }
 Describes whether a parsed SMBIOS field was available and valid. More...

Functions

LAZYBIOS_WARN_UNUSED int lazybiosParseAll (lazybiosCTX_t *ctx)
 Parses every implemented structure type into the context.

Detailed Description

Whole-table parsing and SMBIOS version reporting.

Enumeration Type Documentation

◆ lazybiosFieldStatusValue_t

#include <lazybios.h>

Describes whether a parsed SMBIOS field was available and valid.

Enumerator
LAZYBIOS_FIELD_ABSENT 

The field exists in this SMBIOS version but is not populated by the vendor.

LAZYBIOS_FIELD_PRESENT 

The field is encoded and contains valid data.

LAZYBIOS_FIELD_UNREACHABLE 

The field was added in a newer SMBIOS spec; structure is too short to contain it.

Definition at line 101 of file lazybios.h.

Function Documentation

◆ lazybiosParseAll()

LAZYBIOS_WARN_UNUSED int lazybiosParseAll ( lazybiosCTX_t * ctx)

#include <lazybios.h>

Parses every implemented structure type into the context.

Types already present in ctx are left untouched, so calling this more than once does not strand an earlier result set. A type the table does not contain still yields a valid empty set; a type whose parse fails is left NULL, so check each member before use as usual.

Parameters
ctxContext holding loaded SMBIOS data.
Returns
0 on success, or -1 if the context holds no usable DMI table.

References LAZYBIOS_WARN_UNUSED, and lazybiosParseAll().

Referenced by lazybiosParseAll().