diff options
author | Burt P <pburt0@gmail.com> | 2017-08-15 17:43:30 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-08-27 08:21:05 -0700 |
commit | 875b0e2aab4e9a80fd75996d1cf28281a4e5e341 (patch) | |
tree | b0660d5001d427959597a370f08f95e27a55a3cf /includes | |
parent | aceb905d3750a438e9c6c08c65f97eda2166c56a (diff) |
DMI: dmi_chassis_type_str() maps chassis-type to string
dmi_chassis_type_str() is moved from code in
computer.c:detect_machine_type().
It makes sense to keep it with dmi, as it maps a dmi-defined
value to a string. This way it can be used in both dmi.c
and computer.c.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes')
-rw-r--r-- | includes/devices.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/devices.h b/includes/devices.h index c5a02077..a05baf2f 100644 --- a/includes/devices.h +++ b/includes/devices.h @@ -74,6 +74,7 @@ void scan_spd_do(void); /* DMI */ char *dmi_get_str(const char *id_str); +char *dmi_chassis_type_str(int with_val); extern gchar *battery_list; extern gchar *input_icons; |