summaryrefslogtreecommitdiff
path: root/hardinfo2/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/devices.c')
-rw-r--r--hardinfo2/devices.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hardinfo2/devices.c b/hardinfo2/devices.c
index cff60f50..df57361d 100644
--- a/hardinfo2/devices.c
+++ b/hardinfo2/devices.c
@@ -165,9 +165,15 @@ gchar *get_input_devices(void)
return input_list;
}
+gchar *get_processor_count(void)
+{
+ return g_strdup_printf("%d", g_slist_length(processors));
+}
+
ShellModuleMethod *hi_exported_methods(void)
{
static ShellModuleMethod m[] = {
+ {"getProcessorCount", get_processor_count},
{"getProcessorName", get_processor_name},
{"getStorageDevices", get_storage_devices},
{"getPrinters", get_printers},