lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
type30.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 type30.h
21 * @brief Public API for SMBIOS Type 30 Out-of-Band Remote Access.
22 * @author LazySeldi
23 */
24
25#ifndef LAZYBIOS_TYPE30_H
26#define LAZYBIOS_TYPE30_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 30 fields. */
43
44/**
45 * @brief Decoded forms of the Type 30 encoded fields.
46 *
47 * Each member holds the decoded form of the raw field it is named for.
48 * Consult the matching `field_status` member before using one.
49 */
50typedef struct {
51 const char* inbound_connection;
54
55/**
56 * @brief Parsed SMBIOS Type 30 Out-of-Band Remote Access information.
57 * @ingroup api_type30
58 */
67
68/**
69 * @brief A parsed set of SMBIOS Type 30 structures.
70 * @ingroup api_type30
71 */
76
77/** @addtogroup api_type30
78 * @{
79 */
80
81/**
82 * @brief Parses all SMBIOS Type 30 structures.
83 * @param DMIData Raw DMI table container to parse.
84 * @return Newly allocated set, empty when the table holds no Type 30 structure,
85 * or NULL when the arguments are unusable or an allocation fails.
86 */
88
89/**
90 * @brief Releases a parsed set of SMBIOS Type 30 structures.
91 * @param Type30 Set to release; may be NULL.
92 */
94
95/** @} */
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif
void lazybiosFreeType30(lazybiosType30Array_t *Type30)
Releases a parsed set of SMBIOS Type 30 structures.
LAZYBIOS_WARN_UNUSED lazybiosType30Array_t * lazybiosGetType30(const lazybiosDMI_t *DMIData)
Parses all SMBIOS Type 30 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 30 structures.
Definition type30.h:72
lazybiosType30_t * entries
Definition type30.h:73
Decoded forms of the Type 30 encoded fields.
Definition type30.h:50
const char * inbound_connection
Definition type30.h:51
const char * outbound_connection
Definition type30.h:52
Availability metadata for SMBIOS Type 30 fields.
Definition type30.h:39
lazybiosFieldStatus_t manufacturer_name
Definition type30.h:40
lazybiosFieldStatus_t connections
Definition type30.h:41
Parsed SMBIOS Type 30 Out-of-Band Remote Access information.
Definition type30.h:59
const char * manufacturer_name
Definition type30.h:62
lazybiosType30Decoded_t decoded
Definition type30.h:64
uint8_t connections
Definition type30.h:63
uint8_t length
Definition type30.h:61
lazybiosType30FieldStatus_t field_status
Definition type30.h:65
uint16_t handle
Definition type30.h:60