From a1054182ecd202db45cde1883991d70dbb954763 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Thu, 4 Jan 2007 17:15:12 +0000 Subject: Add about information. --- hardinfo2/util.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'hardinfo2/util.c') 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; -- cgit v1.2.3