From f5cf5653e095790b217da6a393429e74e5a8287a Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 26 Apr 2009 02:07:21 -0300 Subject: Implement more methods; this will be cleaned up later. --- hardinfo2/util.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'hardinfo2/util.c') 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, ...) -- cgit v1.2.3