lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
Type 13: Firmware Language Information Guide

Installable firmware languages, description format, and current language.

Result set and ownership

lazybiosGetType13 returns a lazybiosType13Array_t holding every matching structure. Iterate entries using count. A non-NULL result whose count is zero means the table contains no structure of this type; NULL means the arguments were unusable or an allocation failed. Release the set with lazybiosFreeType13, or assign it to ctx->Type13 and let lazybiosCleanup own it.

Every record carries its own SMBIOS handle and the structure length the firmware reported.

Encoded fields are decoded during parsing into decoded, which mirrors the raw member names (flags). The raw value stays alongside it, so both the encoding and its meaning are available.

Language collection

installable_languages gives the number of descriptions in the languages array. A present count of zero represents an empty collection. The current_language member contains a separately allocated copy of the string selected by the one-based Current Language field.

Description format

SMBIOS 2.1 added bit 0 of flags. A clear bit selects the long format language|territory|encoding; a set bit selects the four-character abbreviated language and territory format. Decode this bit with decoded.flags. Bits 7:1 are reserved.

Ownership

The structure array, each nested languages array, every language string, and current_language are allocated by the parser. Release the complete result with lazybiosFreeType13 or assign it to lazybiosCTX::Type13 and use lazybiosCleanup.

See also
Type 13: Firmware Language Information