lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
type14.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 type14.h
21 * @brief Public API for SMBIOS Type 14 Group Associations.
22 * @author LazySeldi
23 */
24
25#ifndef LAZYBIOS_TYPE14_H
26#define LAZYBIOS_TYPE14_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 14 group item. */
43
44/**
45 * @brief Parsed member of an SMBIOS Type 14 group association.
46 * @ingroup api_type14
47 */
53
54/** @brief Availability metadata for SMBIOS Type 14 fields. */
60
61/**
62 * @brief Parsed SMBIOS Type 14 Group Associations Information.
63 * @ingroup api_type14
64 */
73
74/**
75 * @brief A parsed set of SMBIOS Type 14 structures.
76 * @ingroup api_type14
77 */
82
83/** @addtogroup api_type14
84 * @{
85 */
86
87/**
88 * @brief Parses all SMBIOS Type 14 structures.
89 * @param DMIData Raw DMI table container to parse.
90 * @return Newly allocated set, empty when the table holds no Type 14 structure,
91 * or NULL when the arguments are unusable or an allocation fails.
92 */
94
95/**
96 * @brief Releases a parsed set of SMBIOS Type 14 structures.
97 * @param Type14 Set to release; may be NULL.
98 */
100
101/** @} */
102
103#ifdef __cplusplus
104}
105#endif
106
107#endif
void lazybiosFreeType14(lazybiosType14Array_t *Type14)
Releases a parsed set of SMBIOS Type 14 structures.
LAZYBIOS_WARN_UNUSED lazybiosType14Array_t * lazybiosGetType14(const lazybiosDMI_t *DMIData)
Parses all SMBIOS Type 14 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 14 structures.
Definition type14.h:78
lazybiosType14_t * entries
Definition type14.h:79
Availability metadata for SMBIOS Type 14 fields.
Definition type14.h:55
lazybiosFieldStatus_t item_count
Definition type14.h:57
lazybiosFieldStatus_t group_name
Definition type14.h:56
lazybiosFieldStatus_t items
Definition type14.h:58
Availability metadata for an SMBIOS Type 14 group item.
Definition type14.h:39
lazybiosFieldStatus_t item_type
Definition type14.h:40
lazybiosFieldStatus_t item_handle
Definition type14.h:41
Parsed member of an SMBIOS Type 14 group association.
Definition type14.h:48
uint8_t item_type
Definition type14.h:49
lazybiosType14ItemFieldStatus_t field_status
Definition type14.h:51
uint16_t item_handle
Definition type14.h:50
Parsed SMBIOS Type 14 Group Associations Information.
Definition type14.h:65
uint16_t handle
Definition type14.h:66
const char * group_name
Definition type14.h:68
uint8_t length
Definition type14.h:67
lazybiosType14Item_t * items
Definition type14.h:70
lazybiosType14FieldStatus_t field_status
Definition type14.h:71
size_t item_count
Definition type14.h:69