diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-04-26 02:07:21 -0300 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-04-26 02:07:21 -0300 |
commit | f5cf5653e095790b217da6a393429e74e5a8287a (patch) | |
tree | c67766621ce8bf59135ad236738c5cd0e90670d7 /hardinfo2/util.c | |
parent | 1625f347f4e5bd33138e8c11cbfeb852943ec9d4 (diff) |
Implement more methods; this will be cleaned up later.
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r-- | hardinfo2/util.c | 15 |
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, ...) |