lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
dell_type177.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 dell_type177.h
21 * @brief Public API for Dell BIOS Flags (Dell OEM SMBIOS Type 177).
22 * @author LazySeldi
23 */
24
25#ifndef LAZYBIOS_OEM_DELL_TYPE177_H
26#define LAZYBIOS_OEM_DELL_TYPE177_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 DELL OEM SMBIOS Type 177 fields. */
43
44/**
45 * @brief Decoded forms of the Dell Type 177 encoded fields.
46 */
47typedef struct {
48 const char* acpi_wmi_supported;
50
51/**
52 * @brief Parsed Dell BIOS Flags information.
53 * @ingroup api_dell_type177
54 */
62
63/**
64 * @brief A parsed set of Dell OEM Type 177 structures.
65 * @ingroup api_dell_type177
66 */
71
72/** @addtogroup api_dell_type177
73 * @{
74 */
75
76/**
77 * @brief Parses all Dell OEM SMBIOS Type 177 structures.
78 * @param DMIData Raw DMI table container to parse.
79 * @return Newly allocated set, empty when the table holds no such structure,
80 * or NULL when the arguments are unusable or an allocation fails.
81 */
83
84/**
85 * @brief Releases a parsed set of Dell OEM Type 177 structures.
86 * @param DellType177 Set to release; may be NULL.
87 */
89
90/** @} */
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif
void lazybiosFreeOemDellType177(lazybiosOemDellType177Array_t *DellType177)
Releases a parsed set of Dell OEM Type 177 structures.
LAZYBIOS_WARN_UNUSED lazybiosOemDellType177Array_t * lazybiosGetOemDellType177(const lazybiosDMI_t *DMIData)
Parses all Dell OEM SMBIOS Type 177 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 Dell OEM Type 177 structures.
lazybiosOemDellType177_t * entries
Decoded forms of the Dell Type 177 encoded fields.
Availability metadata for DELL OEM SMBIOS Type 177 fields.
lazybiosFieldStatus_t acpi_wmi_supported
lazybiosFieldStatus_t bios_flags
Parsed Dell BIOS Flags information.
lazybiosOemDellType177FieldStatus_t field_status
lazybiosOemDellType177Decoded_t decoded