lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
lazybios_json.h File Reference

cJSON serialization API for parsed SMBIOS structures. More...

#include "lazybios/lazybios.h"
#include "cJSON.h"

Go to the source code of this file.

Functions

void lazybiosExtJSONAddOemDellType177 (const lazybiosOemDellType177Array_t *dell177, cJSON *root)
 OEM serialisers nest their output as oem.<vendor>.TypeN, mirroring ctx->oem->dell->TypeN, because an OEM structure number is only meaningful together with its vendor.
void lazybiosExtJSONAddOemDellType212 (const lazybiosOemDellType212Array_t *dell212, cJSON *root)
 Serialises an array of parsed Dell OEM Type 212 (Dell Indexed I/O Access) structures into a cJSON array and attaches it to root under the key "DellType212".
void lazybiosExtJSONAddOemDellType218 (const lazybiosOemDellType218Array_t *dell218, cJSON *root)
 Serialises an array of parsed Dell OEM Type 218 (Dell Token Interface) structures into a cJSON array and attaches it to root under the key "DellType218".
void lazybiosExtJSONAddOemHpType204 (const lazybiosOemHpType204Array_t *hp204, cJSON *root)
 Serialises an array of parsed HP OEM Type 204 (HPE ProLiant System/Rack Locator) structures into a cJSON array and attaches it to root under the key "HpType204".
void lazybiosExtJSONAddSMBIOSInfo (const lazybiosDMI_t *DMIData, lazybiosBackend_t backend, cJSON *root)
 Output contract shared by the per-type lazybiosExtJSONAddTypeN() functions.
void lazybiosExtJSONAddType0 (const lazybiosType0Array_t *type0, cJSON *root)
 Serialises an array of parsed SMBIOS Type 0 (BIOS Information) structures into a cJSON array and attaches it to root under the key "Type0".
void lazybiosExtJSONAddType1 (const lazybiosType1Array_t *type1, cJSON *root)
 Serialises an array of parsed SMBIOS Type 1 (System Information) structures into a cJSON array and attaches it to root under the key "Type1".
void lazybiosExtJSONAddType10 (const lazybiosType10Array_t *type10, cJSON *root)
 Serialises an array of parsed SMBIOS Type 10 (On Board Devices Information, obsolete) structures into a cJSON array and attaches it to root under the key "Type10".
void lazybiosExtJSONAddType11 (const lazybiosType11Array_t *type11, cJSON *root)
 Serialises an array of parsed SMBIOS Type 11 (OEM Strings) structures into a cJSON array and attaches it to root under the key "Type11".
void lazybiosExtJSONAddType12 (const lazybiosType12Array_t *type12, cJSON *root)
 Serialises an array of parsed SMBIOS Type 12 (System Configuration Options) structures into a cJSON array and attaches it to root under the key "Type12".
void lazybiosExtJSONAddType13 (const lazybiosType13Array_t *type13, cJSON *root)
 Serialises an array of parsed SMBIOS Type 13 (Firmware Language Information) structures into a cJSON array and attaches it to root under the key "Type13".
void lazybiosExtJSONAddType14 (const lazybiosType14Array_t *type14, cJSON *root)
 Serialises an array of parsed SMBIOS Type 14 (Group Associations) structures into a cJSON array and attaches it to root under the key "Type14".
void lazybiosExtJSONAddType15 (const lazybiosType15Array_t *type15, cJSON *root)
 Serialises an array of parsed SMBIOS Type 15 (System Event Log) structures into a cJSON array and attaches it to root under the key "Type15".
void lazybiosExtJSONAddType16 (const lazybiosType16Array_t *type16, cJSON *root)
 Serialises an array of parsed SMBIOS Type 16 (Physical Memory Array) structures into a cJSON array and attaches it to root under the key "Type16".
void lazybiosExtJSONAddType17 (const lazybiosType17Array_t *type17, cJSON *root)
 Serialises an array of parsed SMBIOS Type 17 (Memory Device) structures into a cJSON array and attaches it to root under the key "Type17".
void lazybiosExtJSONAddType18 (const lazybiosType18Array_t *type18, cJSON *root)
 Serialises an array of parsed SMBIOS Type 18 (32-Bit Memory Error Info) structures into a cJSON array and attaches it to root under the key "Type18".
void lazybiosExtJSONAddType19 (const lazybiosType19Array_t *type19, cJSON *root)
 Serialises an array of parsed SMBIOS Type 19 (Memory Array Mapped Address) structures into a cJSON array and attaches it to root under the key "Type19".
void lazybiosExtJSONAddType2 (const lazybiosType2Array_t *type2, cJSON *root)
 Serialises an array of parsed SMBIOS Type 2 (Baseboard Information) structures into a cJSON array and attaches it to root under the key "Type2".
void lazybiosExtJSONAddType20 (const lazybiosType20Array_t *type20, cJSON *root)
 Serialises an array of parsed SMBIOS Type 20 (Memory Device Mapped Address) structures into a cJSON array and attaches it to root under the key "Type20".
void lazybiosExtJSONAddType21 (const lazybiosType21Array_t *type21, cJSON *root)
 Serialises an array of parsed SMBIOS Type 21 (Built-in Pointing Device) structures into a cJSON array and attaches it to root under the key "Type21".
void lazybiosExtJSONAddType22 (const lazybiosType22Array_t *type22, cJSON *root)
 Serialises an array of parsed SMBIOS Type 22 (Portable Battery) structures into a cJSON array and attaches it to root under the key "Type22".
void lazybiosExtJSONAddType23 (const lazybiosType23Array_t *type23, cJSON *root)
 Serialises an array of parsed SMBIOS Type 23 (System Reset) structures into a cJSON array and attaches it to root under the key "Type23".
void lazybiosExtJSONAddType24 (const lazybiosType24Array_t *type24, cJSON *root)
 Serialises an array of parsed SMBIOS Type 24 (Hardware Security) structures into a cJSON array and attaches it to root under the key "Type24".
void lazybiosExtJSONAddType25 (const lazybiosType25Array_t *type25, cJSON *root)
 Serialises an array of parsed SMBIOS Type 25 (System Power Controls) structures into a cJSON array and attaches it to root under the key "Type25".
void lazybiosExtJSONAddType26 (const lazybiosType26Array_t *type26, cJSON *root)
 Serialises an array of parsed SMBIOS Type 26 (Voltage Probe) structures into a cJSON array and attaches it to root under the key "Type26".
void lazybiosExtJSONAddType27 (const lazybiosType27Array_t *type27, cJSON *root)
 Serialises an array of parsed SMBIOS Type 27 (Cooling Device) structures into a cJSON array and attaches it to root under the key "Type27".
void lazybiosExtJSONAddType28 (const lazybiosType28Array_t *type28, cJSON *root)
 Serialises an array of parsed SMBIOS Type 28 (Temperature Probe) structures into a cJSON array and attaches it to root under the key "Type28".
void lazybiosExtJSONAddType29 (const lazybiosType29Array_t *type29, cJSON *root)
 Serialises an array of parsed SMBIOS Type 29 (Electrical Current Probe) structures into a cJSON array and attaches it to root under the key "Type29".
void lazybiosExtJSONAddType3 (const lazybiosType3Array_t *type3, cJSON *root)
 Serialises an array of parsed SMBIOS Type 3 (Chassis Information) structures into a cJSON array and attaches it to root under the key "Type3".
void lazybiosExtJSONAddType30 (const lazybiosType30Array_t *type30, cJSON *root)
 Serialises an array of parsed SMBIOS Type 30 (Out-of-Band Remote Access) structures into a cJSON array and attaches it to root under the key "Type30".
void lazybiosExtJSONAddType31 (const lazybiosType31Array_t *type31, cJSON *root)
 Serialises an array of parsed SMBIOS Type 31 (Boot Integrity Services) structures into a cJSON array and attaches it to root under the key "Type31".
void lazybiosExtJSONAddType32 (const lazybiosType32Array_t *type32, cJSON *root)
 Serialises an array of parsed SMBIOS Type 32 (System Boot) structures into a cJSON array and attaches it to root under the key "Type32".
void lazybiosExtJSONAddType33 (const lazybiosType33Array_t *type33, cJSON *root)
 Serialises an array of parsed SMBIOS Type 33 (64-Bit Memory Error Info) structures into a cJSON array and attaches it to root under the key "Type33".
void lazybiosExtJSONAddType34 (const lazybiosType34Array_t *type34, cJSON *root)
 Serialises an array of parsed SMBIOS Type 34 (Management Device) structures into a cJSON array and attaches it to root under the key "Type34".
void lazybiosExtJSONAddType35 (const lazybiosType35Array_t *type35, cJSON *root)
 Serialises an array of parsed SMBIOS Type 35 (Management Device Component) structures into a cJSON array and attaches it to root under the key "Type35".
void lazybiosExtJSONAddType36 (const lazybiosType36Array_t *type36, cJSON *root)
 Serialises an array of parsed SMBIOS Type 36 (Management Device Threshold Data) structures into a cJSON array and attaches it to root under the key "Type36".
void lazybiosExtJSONAddType37 (const lazybiosType37Array_t *type37, cJSON *root)
 Serialises an array of parsed SMBIOS Type 37 (Memory Channel) structures into a cJSON array and attaches it to root under the key "Type37".
void lazybiosExtJSONAddType38 (const lazybiosType38Array_t *type38, cJSON *root)
 Serialises an array of parsed SMBIOS Type 38 (IPMI Device) structures into a cJSON array and attaches it to root under the key "Type38".
void lazybiosExtJSONAddType39 (const lazybiosType39Array_t *type39, cJSON *root)
 Serialises an array of parsed SMBIOS Type 39 (System Power Supply) structures into a cJSON array and attaches it to root under the key "Type39".
void lazybiosExtJSONAddType4 (const lazybiosType4Array_t *type4, cJSON *root)
 Serialises an array of parsed SMBIOS Type 4 (Processor Information) structures into a cJSON array and attaches it to root under the key "Type4".
void lazybiosExtJSONAddType40 (const lazybiosType40Array_t *type40, cJSON *root)
 Serialises an array of parsed SMBIOS Type 40 (Additional Information) structures into a cJSON array and attaches it to root under the key "Type40".
void lazybiosExtJSONAddType41 (const lazybiosType41Array_t *type41, cJSON *root)
 Serialises an array of parsed SMBIOS Type 41 (Onboard Devices Extended Information) structures into a cJSON array and attaches it to root under the key "Type41".
void lazybiosExtJSONAddType42 (const lazybiosType42Array_t *type42, cJSON *root)
 Serialises an array of parsed SMBIOS Type 42 (Management Controller Host Interface) structures into a cJSON array and attaches it to root under the key "Type42".
void lazybiosExtJSONAddType43 (const lazybiosType43Array_t *type43, cJSON *root)
 Serialises an array of parsed SMBIOS Type 43 (TPM Device) structures into a cJSON array and attaches it to root under the key "Type43".
void lazybiosExtJSONAddType44 (const lazybiosType44Array_t *type44, cJSON *root)
 Serialises an array of parsed SMBIOS Type 44 (Processor Additional Information) structures into a cJSON array and attaches it to root under the key "Type44".
void lazybiosExtJSONAddType45 (const lazybiosType45Array_t *type45, cJSON *root)
 Serialises an array of parsed SMBIOS Type 45 (Firmware Inventory Information) structures into a cJSON array and attaches it to root under the key "Type45".
void lazybiosExtJSONAddType46 (const lazybiosType46Array_t *type46, cJSON *root)
 Serialises an array of parsed SMBIOS Type 46 (String Property) structures into a cJSON array and attaches it to root under the key "Type46".
void lazybiosExtJSONAddType5 (const lazybiosType5Array_t *type5, cJSON *root)
 Serialises an array of parsed SMBIOS Type 5 (Memory Controller Information, obsolete) structures into a cJSON array and attaches it to root under the key "Type5".
void lazybiosExtJSONAddType6 (const lazybiosType6Array_t *type6, cJSON *root)
 Serialises an array of parsed SMBIOS Type 6 (Memory Module Information, obsolete) structures into a cJSON array and attaches it to root under the key "Type6".
void lazybiosExtJSONAddType7 (const lazybiosType7Array_t *type7, cJSON *root)
 Serialises an array of parsed SMBIOS Type 7 (Cache Information) structures into a cJSON array and attaches it to root under the key "Type7".
void lazybiosExtJSONAddType8 (const lazybiosType8Array_t *type8, cJSON *root)
 Serialises an array of parsed SMBIOS Type 8 (Port Connector Information) structures into a cJSON array and attaches it to root under the key "Type8".
void lazybiosExtJSONAddType9 (const lazybiosType9Array_t *type9, cJSON *root)
 Serialises an array of parsed SMBIOS Type 9 (System Slots Information) structures into a cJSON array and attaches it to root under the key "Type9".
LAZYBIOS_WARN_UNUSED int lazybiosParseJSONAll (lazybiosCTX_t *ctx, cJSON *root)
 Parses every implemented structure type and serializes the lot into root.

Detailed Description

cJSON serialization API for parsed SMBIOS structures.

Author
LazySeldi

Definition in file lazybios_json.h.