lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
type35.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 type35.h
21 * @brief Public API for SMBIOS Type 35 Management Device Component.
22 * @author LazySeldi
23 */
24
25#ifndef LAZYBIOS_TYPE35_H
26#define LAZYBIOS_TYPE35_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 SMBIOS Type 35 fields. */
45
46/**
47 * @brief Parsed SMBIOS Type 35 Management Device Component information.
48 * @ingroup api_type35
49 */
59
60/**
61 * @brief A parsed set of SMBIOS Type 35 structures.
62 * @ingroup api_type35
63 */
68
69/** @addtogroup api_type35
70 * @{
71 */
72
73/**
74 * @brief Parses all SMBIOS Type 35 structures.
75 * @param DMIData Raw DMI table container to parse.
76 * @return Newly allocated set, empty when the table holds no Type 35 structure,
77 * or NULL when the arguments are unusable or an allocation fails.
78 */
80
81/**
82 * @brief Releases a parsed set of SMBIOS Type 35 structures.
83 * @param Type35 Set to release; may be NULL.
84 */
86
87/** @} */
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif
LAZYBIOS_WARN_UNUSED lazybiosType35Array_t * lazybiosGetType35(const lazybiosDMI_t *DMIData)
Parses all SMBIOS Type 35 structures.
void lazybiosFreeType35(lazybiosType35Array_t *Type35)
Releases a parsed set of SMBIOS Type 35 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 35 structures.
Definition type35.h:64
lazybiosType35_t * entries
Definition type35.h:65
Availability metadata for SMBIOS Type 35 fields.
Definition type35.h:39
lazybiosFieldStatus_t threshold_handle
Definition type35.h:43
lazybiosFieldStatus_t component_handle
Definition type35.h:42
lazybiosFieldStatus_t management_device_handle
Definition type35.h:41
lazybiosFieldStatus_t description
Definition type35.h:40
Parsed SMBIOS Type 35 Management Device Component information.
Definition type35.h:50
lazybiosType35FieldStatus_t field_status
Definition type35.h:57
uint8_t length
Definition type35.h:52
uint16_t threshold_handle
Definition type35.h:56
uint16_t handle
Definition type35.h:51
uint16_t component_handle
Definition type35.h:55
uint16_t management_device_handle
Definition type35.h:54
const char * description
Definition type35.h:53