diff options
author | Burt P <pburt0@gmail.com> | 2017-08-16 18:42:43 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-08-27 08:21:05 -0700 |
commit | 0c9c83526b1d740d0c71e527a5f5b0af1a8de35e (patch) | |
tree | 2287085a19852687fe187f05efd27644b3fd5c40 /includes | |
parent | ed11c87c2cc56fe40f6d4503cf0cc56e7ed841f7 (diff) |
DMI: allow specifying type for dmi_chassis_type_str()
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes')
-rw-r--r-- | includes/dmi_util.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 |