diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-04-25 23:36:55 -0300 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-04-25 23:36:55 -0300 |
commit | 1625f347f4e5bd33138e8c11cbfeb852943ec9d4 (patch) | |
tree | cce0a22f501c657a380cc3438a6cbffc7d688550 /hardinfo2/util.c | |
parent | cc6fd7f646e372a50c56db1c9af1b9d0bcbe8d6c (diff) |
Implement module.entryGetField()
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) { |