aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-08-15 13:51:56 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2017-08-27 08:21:05 -0700
commit90ef50fd3877856769acb87ba19d864db106c760 (patch)
treed2b74b2070bdeea251ff5478cb1b0647afb3b844 /includes
parent201edf4795724b6de5e15882582856367ed15343 (diff)
DMI: create single dmi_get_str() that uses sysfs with dmidecode fallback
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes')
-rw-r--r--includes/devices.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/devices.h b/includes/devices.h
index 00787331..c5a02077 100644
--- a/includes/devices.h
+++ b/includes/devices.h
@@ -72,6 +72,9 @@ void sensors_shutdown(void);
void scan_spd_do(void);
#endif /* ARCH_x86 */
+/* DMI */
+char *dmi_get_str(const char *id_str);
+
extern gchar *battery_list;
extern gchar *input_icons;
extern gchar *input_list;
@@ -91,10 +94,10 @@ extern GHashTable *sensor_labels;
extern GModule *cups;
#if defined(ARCH_x86) || defined(ARCH_x86_64)
-extern gchar *dmi_info;
extern gchar *spd_info;
#endif
+extern gchar *dmi_info;
extern gchar *dtree_info;
#endif /* __DEVICES_H__ */