diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-01-04 17:15:12 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-01-04 17:15:12 +0000 |
commit | a1054182ecd202db45cde1883991d70dbb954763 (patch) | |
tree | 9353c7e206a89d4684a169704e29cc01b35a0188 /hardinfo2/util.c | |
parent | b447372e7c120e2336fe0ac910792b04e1688af2 (diff) |
Add about information.
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r-- | hardinfo2/util.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c index ecd2b6fa..b51dab5d 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -555,6 +555,17 @@ static void module_free(ShellModule *module) g_free(module); } +ModuleAbout *module_get_about(ShellModule *module) +{ + ModuleAbout *(*get_about)(void); + + if (g_module_symbol(module->dll, "hi_module_get_about", (gpointer) &get_about)) { + return get_about(); + } + + return NULL; +} + static GSList *modules_check_deps(GSList *modules) { GSList *mm; |