lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
type40.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: LGPL-2.1-or-later
3 *
4 * This file is part of lazybios.
5 *
6 * lazybios is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 2.1 of the License, or
9 * (at your option) any later version.
10 *
11 * lazybios is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with lazybios. If not, see <https://www.gnu.org/licenses/>.
18 */
19/**
20 * @file type40.h
21 * @brief Public API for SMBIOS Type 40 Additional Information.
22 * @author LazySeldi
23 */
24
25#ifndef LAZYBIOS_TYPE40_H
26#define LAZYBIOS_TYPE40_H
27
28#ifndef LAZYBIOS_SHARED_API_H
29#define LAZYBIOS_TYPE_HEADER_ONLY
30#include "lazybios/lazybios.h"
31#undef LAZYBIOS_TYPE_HEADER_ONLY
32#endif
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38/** @brief Availability metadata for an SMBIOS Type 40 entry. */
46
47/**
48 * @brief Parsed entry from an SMBIOS Type 40 Additional Information structure.
49 * @ingroup api_type40
50 */
60
61/** @brief Availability metadata for SMBIOS Type 40 fields. */
66
67/**
68 * @brief Parsed SMBIOS Type 40 Additional Information.
69 * @ingroup api_type40
70 */
78
79/**
80 * @brief A parsed set of SMBIOS Type 40 structures.
81 * @ingroup api_type40
82 */
87
88/** @addtogroup api_type40
89 * @{
90 */
91
92/**
93 * @brief Parses all SMBIOS Type 40 structures.
94 * @param DMIData Raw DMI table container to parse.
95 * @return Newly allocated set, empty when the table holds no Type 40 structure,
96 * or NULL when the arguments are unusable or an allocation fails.
97 */
99
100/**
101 * @brief Releases a parsed set of SMBIOS Type 40 structures.
102 * @param Type40 Set to release; may be NULL.
103 */
105
106/** @} */
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif
void lazybiosFreeType40(lazybiosType40Array_t *Type40)
Releases a parsed set of SMBIOS Type 40 structures.
LAZYBIOS_WARN_UNUSED lazybiosType40Array_t * lazybiosGetType40(const lazybiosDMI_t *DMIData)
Parses all SMBIOS Type 40 structures.
Public API for lazybios. Include this and nothing else.
uint8_t lazybiosFieldStatus_t
Storage for one field's availability.
Definition lazybios.h:115
#define LAZYBIOS_WARN_UNUSED
Expands to nothing on compilers without a return-value check.
Definition lazybios.h:150
Owns raw DMI table data and its parsed SMBIOS entry point.
Definition lazybios.h:218
A parsed set of SMBIOS Type 40 structures.
Definition type40.h:83
lazybiosType40_t * entries
Definition type40.h:84
Availability metadata for an SMBIOS Type 40 entry.
Definition type40.h:39
lazybiosFieldStatus_t string
Definition type40.h:43
lazybiosFieldStatus_t entry_length
Definition type40.h:40
lazybiosFieldStatus_t referenced_offset
Definition type40.h:42
lazybiosFieldStatus_t value
Definition type40.h:44
lazybiosFieldStatus_t referenced_handle
Definition type40.h:41
Parsed entry from an SMBIOS Type 40 Additional Information structure.
Definition type40.h:51
uint8_t entry_length
Definition type40.h:52
const char * string
Definition type40.h:55
uint8_t referenced_offset
Definition type40.h:54
uint8_t * value
Definition type40.h:57
uint16_t referenced_handle
Definition type40.h:53
lazybiosType40EntryFieldStatus_t field_status
Definition type40.h:58
Availability metadata for SMBIOS Type 40 fields.
Definition type40.h:62
lazybiosFieldStatus_t additional_information_entries
Definition type40.h:64
lazybiosFieldStatus_t additional_information_entry_count
Definition type40.h:63
Parsed SMBIOS Type 40 Additional Information.
Definition type40.h:71
lazybiosType40Entry_t * additional_information_entries
Definition type40.h:75
uint16_t handle
Definition type40.h:72
uint8_t additional_information_entry_count
Definition type40.h:74
lazybiosType40FieldStatus_t field_status
Definition type40.h:76
uint8_t length
Definition type40.h:73