lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
type25.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 type25.h
21 * @brief Public API for SMBIOS Type 25 System Power Controls.
22 * @author LazySeldi
23 */
24
25#ifndef LAZYBIOS_TYPE25_H
26#define LAZYBIOS_TYPE25_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 25 fields. */
46
47/**
48 * @brief Decoded forms of the Type 25 encoded fields.
49 */
53
54/**
55 * @brief Parsed SMBIOS Type 25 System Power Controls information.
56 * @ingroup api_type25
57 */
69
70/**
71 * @brief A parsed set of SMBIOS Type 25 structures.
72 * @ingroup api_type25
73 */
78
79/** @addtogroup api_type25
80 * @{
81 */
82
83/**
84 * @brief Parses all SMBIOS Type 25 structures.
85 * @param DMIData Raw DMI table container to parse.
86 * @return Newly allocated set, empty when the table holds no Type 25 structure,
87 * or NULL when the arguments are unusable or an allocation fails.
88 */
90
91/**
92 * @brief Releases a parsed set of SMBIOS Type 25 structures.
93 * @param Type25 Set to release; may be NULL.
94 */
96
97/** @} */
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif
LAZYBIOS_WARN_UNUSED lazybiosType25Array_t * lazybiosGetType25(const lazybiosDMI_t *DMIData)
Parses all SMBIOS Type 25 structures.
void lazybiosFreeType25(lazybiosType25Array_t *Type25)
Releases a parsed set of SMBIOS Type 25 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 25 structures.
Definition type25.h:74
lazybiosType25_t * entries
Definition type25.h:75
Decoded forms of the Type 25 encoded fields.
Definition type25.h:50
char * next_scheduled_power_on
Definition type25.h:51
Availability metadata for SMBIOS Type 25 fields.
Definition type25.h:39
lazybiosFieldStatus_t next_scheduled_power_on_hour
Definition type25.h:42
lazybiosFieldStatus_t next_scheduled_power_on_month
Definition type25.h:40
lazybiosFieldStatus_t next_scheduled_power_on_minute
Definition type25.h:43
lazybiosFieldStatus_t next_scheduled_power_on_day
Definition type25.h:41
lazybiosFieldStatus_t next_scheduled_power_on_second
Definition type25.h:44
Parsed SMBIOS Type 25 System Power Controls information.
Definition type25.h:58
uint8_t next_scheduled_power_on_hour
Definition type25.h:63
uint8_t next_scheduled_power_on_month
Definition type25.h:61
lazybiosType25FieldStatus_t field_status
Definition type25.h:67
uint8_t length
Definition type25.h:60
uint8_t next_scheduled_power_on_day
Definition type25.h:62
uint8_t next_scheduled_power_on_minute
Definition type25.h:64
uint8_t next_scheduled_power_on_second
Definition type25.h:65
lazybiosType25Decoded_t decoded
Definition type25.h:66
uint16_t handle
Definition type25.h:59