diff options
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r-- | hardinfo2/util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c index 9cef2cef..3aaa541b 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -1056,6 +1056,16 @@ void module_entry_scan(ShellModuleEntry * module_entry) } } +gchar *module_entry_get_field(ShellModuleEntry * module_entry, gchar * field) +{ + if (module_entry->fieldfunc) { + DEBUG("field=%s, entry=%s", field, module_entry->name); + return module_entry->fieldfunc(field); + } + + return NULL; +} + gchar *module_entry_function(ShellModuleEntry * module_entry) { if (module_entry->func) { |