Cache list of plugin names to further simplify its usage.

Also helpful for ipsec statusall to avoid having to enumerate plugins.
This commit is contained in:
Tobias Brunner
2012-01-19 12:37:42 +01:00
parent fdf1f239ef
commit f1ba06c1c6
8 changed files with 62 additions and 73 deletions
+2 -14
View File
@@ -201,18 +201,6 @@ METHOD(daemon_t, start, void,
DEFAULT_THREADS));
}
/**
* Log loaded plugins
*/
static void print_plugins()
{
char *plugins;
plugins = lib->plugins->loaded_plugins(lib->plugins);
DBG1(DBG_DMN, "loaded plugins: %s", plugins);
free(plugins);
}
METHOD(daemon_t, initialize, bool,
private_daemon_t *this)
{
@@ -233,8 +221,8 @@ METHOD(daemon_t, initialize, bool,
{
return FALSE;
}
print_plugins();
DBG1(DBG_DMN, "loaded plugins: %s",
lib->plugins->loaded_plugins(lib->plugins));
this->public.ike_sa_manager = ike_sa_manager_create();
if (this->public.ike_sa_manager == NULL)