diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2010-01-04 22:29:04 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2010-01-04 22:29:04 -0200 |
commit | 148870bd0d9197dc4cfc08acf6be0c756d0f06bc (patch) | |
tree | 9beecf5980fa8796234363f92bb8e3a6a969fedb /hardinfo2/util.c | |
parent | ddf6c3314585b3aacc7c93ab7bc1cab2e73d5fc3 (diff) |
Implement the graphical summary view in the shell, and do a proof of concept implementation for computer.so module.
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r-- | hardinfo2/util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c index 01106c9d..54015b34 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -47,6 +47,8 @@ static GSList *modules_list = NULL; +void sync_manager_clear_entries(void); + gchar *find_program(gchar *program_name) { int i; @@ -621,6 +623,7 @@ static void module_unload(ShellModule * module) g_free(module); } + void module_unload_all(void) { Shell *shell; @@ -706,6 +709,8 @@ static ShellModule *module_load(gchar * filename) (gpointer) & (module->aboutfunc)); g_module_symbol(module->dll, "hi_module_deinit", (gpointer) & (module->deinit)); + g_module_symbol(module->dll, "hi_module_get_summary", + (gpointer) & (module->summaryfunc)); entries = get_module_entries(); while (entries[i].name) { @@ -772,6 +777,7 @@ static gint module_cmp(gconstpointer m1, gconstpointer m2) return a->weight - b->weight; } +#if 0 static void module_entry_free(gpointer data, gpointer user_data) { ShellModuleEntry *entry = (ShellModuleEntry *) data; @@ -783,6 +789,7 @@ static void module_entry_free(gpointer data, gpointer user_data) g_free(entry); } } +#endif ModuleAbout *module_get_about(ShellModule * module) { |