aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r--hardinfo2/util.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c
index 3aaa541b..b1771957 100644
--- a/hardinfo2/util.c
+++ b/hardinfo2/util.c
@@ -1075,9 +1075,22 @@ gchar *module_entry_function(ShellModuleEntry * module_entry)
return g_strdup("[Error]\n" "Invalid module=");
}
+gchar *module_entry_get_moreinfo(ShellModuleEntry * module_entry)
+{
+ if (module_entry->morefunc) {
+ return g_strdup(module_entry->morefunc(module_entry->name));
+ }
+
+ return NULL;
+}
+
const gchar *module_entry_get_note(ShellModuleEntry * module_entry)
{
- return module_entry->notefunc(module_entry->number);
+ if (module_entry->notefunc) {
+ return module_entry->notefunc(module_entry->number);
+ }
+
+ return NULL;
}
gchar *h_strdup_cprintf(const gchar * format, gchar * source, ...)