mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 02:46:21 +00:00
Add plugins on_unload hook
This commit is contained in:
@@ -168,6 +168,11 @@ plugins_load(const char *const name)
|
||||
gboolean
|
||||
plugins_unload(const char *const name)
|
||||
{
|
||||
ProfPlugin *plugin = g_hash_table_lookup(plugins, name);
|
||||
if (plugin) {
|
||||
plugin->on_unload_func(plugin);
|
||||
}
|
||||
|
||||
prefs_remove_plugin(name);
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user