From c76abd986b499ee7a0c53a1a7fc9cc6ea041bccd Mon Sep 17 00:00:00 2001 From: Burt P Date: Wed, 17 Jul 2019 22:44:25 -0500 Subject: dmi_util: extended handle data type Signed-off-by: Burt P --- includes/dmi_util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'includes') diff --git a/includes/dmi_util.h b/includes/dmi_util.h index d557d58b..bb56c31a 100644 --- a/includes/dmi_util.h +++ b/includes/dmi_util.h @@ -38,9 +38,17 @@ char *dmi_get_str_abs(const char *id_str); /* include nonsense */ * "Desktop". */ char *dmi_chassis_type_str(int chassis_type, gboolean with_val); +typedef struct { + dmi_handle id; + uint32_t size; + dmi_type type; + const char *type_str; /* untranslated, use _() for translation */ +} dmi_handle_ext; + typedef struct { uint32_t count; dmi_handle *handles; + dmi_handle_ext *handles_ext; } dmi_handle_list; /* get a list of handles that match a dmi_type */ -- cgit v1.2.3