aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/util.c
diff options
context:
space:
mode:
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;