lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
Type 22: Portable Battery

Portable battery identity, chemistry, capacity, voltage, and SBDS information. More...

Data Structures

struct  lazybiosType22_t
 Parsed SMBIOS Type 22 Portable Battery. More...
struct  lazybiosType22Array_t
 A parsed set of SMBIOS Type 22 structures. More...

Functions

void lazybiosFreeType22 (lazybiosType22Array_t *Type22)
 Releases a parsed set of SMBIOS Type 22 structures.
LAZYBIOS_WARN_UNUSED lazybiosType22Array_tlazybiosGetType22 (const lazybiosDMI_t *DMIData)
 Parses all SMBIOS Type 22 structures.

Detailed Description

Portable battery identity, chemistry, capacity, voltage, and SBDS information.

Function Documentation

◆ lazybiosFreeType22()

void lazybiosFreeType22 ( lazybiosType22Array_t * Type22)

#include <type22.h>

Releases a parsed set of SMBIOS Type 22 structures.

Parameters
Type22Set to release; may be NULL.

References lazybiosFreeType22().

Referenced by lazybiosFreeType22().

◆ lazybiosGetType22()

LAZYBIOS_WARN_UNUSED lazybiosType22Array_t * lazybiosGetType22 ( const lazybiosDMI_t * DMIData)

#include <type22.h>

Parses all SMBIOS Type 22 structures.

Parameters
DMIDataRaw DMI table container to parse.
Returns
Newly allocated set, empty when the table holds no Type 22 structure, or NULL when the arguments are unusable or an allocation fails.

References LAZYBIOS_WARN_UNUSED, and lazybiosGetType22().

Referenced by lazybiosGetType22().