From 0c9c83526b1d740d0c71e527a5f5b0af1a8de35e Mon Sep 17 00:00:00 2001 From: Burt P Date: Wed, 16 Aug 2017 18:42:43 -0500 Subject: DMI: allow specifying type for dmi_chassis_type_str() Signed-off-by: Burt P --- includes/dmi_util.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'includes/dmi_util.h') diff --git a/includes/dmi_util.h b/includes/dmi_util.h index b92d4ff2..965bee91 100644 --- a/includes/dmi_util.h +++ b/includes/dmi_util.h @@ -3,6 +3,10 @@ const char *dmi_sysfs_root(void); char *dmi_get_str(const char *id_str); -char *dmi_chassis_type_str(int with_val); + +/* if chassis_type is <=0 it will be fetched from DMI. + * with_val = true, will return a string like "[3] Desktop" instead of just + * "Desktop". */ +char *dmi_chassis_type_str(int chassis_type, int with_val); #endif -- cgit v1.2.3