summaryrefslogtreecommitdiff
path: root/hardinfo2/util.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-04 17:15:12 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-04 17:15:12 +0000
commita1054182ecd202db45cde1883991d70dbb954763 (patch)
tree9353c7e206a89d4684a169704e29cc01b35a0188 /hardinfo2/util.c
parentb447372e7c120e2336fe0ac910792b04e1688af2 (diff)
Add about information.
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r--hardinfo2/util.c11
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;