From 1625f347f4e5bd33138e8c11cbfeb852943ec9d4 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 25 Apr 2009 23:36:55 -0300 Subject: Implement module.entryGetField() --- hardinfo2/util.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hardinfo2/util.c') 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) { -- cgit v1.2.3