From 7f3cfdb1247f4a578062b8587ebde1be99708a36 Mon Sep 17 00:00:00 2001 From: Burt P Date: Mon, 22 Oct 2018 21:46:48 -0500 Subject: dmi_util: make ignoring string detectable Signed-off-by: Burt P --- includes/dmi_util.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/dmi_util.h b/includes/dmi_util.h index 7ef33681..efc0ea21 100644 --- a/includes/dmi_util.h +++ b/includes/dmi_util.h @@ -21,7 +21,12 @@ #ifndef __DMI_UTIL_H__ #define __DMI_UTIL_H__ -char *dmi_get_str(const char *id_str); +/* -1 = yes, but will be ignored + * 0 = no + * 1 = yes */ +int dmi_str_status(const char *id_str); +char *dmi_get_str(const char *id_str); /* ignore nonsense */ +char *dmi_get_str_abs(const char *id_str); /* include nonsense */ /* if chassis_type is <=0 it will be fetched from DMI. * with_val = true, will return a string like "[3] Desktop" instead of just -- cgit v1.2.3