plugin-loader: Removed unused path argument of load() method

Multiple additional search paths can be added with the add_path()
method.
This commit is contained in:
Tobias Brunner
2013-06-28 10:44:15 +02:00
parent 9da142b4dc
commit b18a531715
25 changed files with 33 additions and 37 deletions
+3 -6
View File
@@ -937,17 +937,14 @@ static bool find_plugin(char *path, char *name, char *buf, char **file)
}
METHOD(plugin_loader_t, load_plugins, bool,
private_plugin_loader_t *this, char *default_path, char *list)
private_plugin_loader_t *this, char *list)
{
enumerator_t *enumerator;
char *token;
char *default_path = NULL, *token;
bool critical_failed = FALSE;
#ifdef PLUGINDIR
if (default_path == NULL)
{
default_path = PLUGINDIR;
}
default_path = PLUGINDIR;
#endif /* PLUGINDIR */
enumerator = enumerator_create_token(list, " ", " ");
+5 -6
View File
@@ -57,25 +57,24 @@ struct plugin_loader_t {
bool critical);
/**
* Load a list of plugins from a directory.
* Load a list of plugins.
*
* Each plugin in list may have a ending exclamation mark (!) to mark it
* Each plugin in list may have an ending exclamation mark (!) to mark it
* as a critical plugin. If loading a critical plugin fails, plugin loading
* is aborted and FALSE is returned.
*
* Additional paths can be added with add_path(), these will be searched
* for the plugins first, in the order they were added, then the given path
* or the default follow.
* for the plugins first, in the order they were added, then the default
* path follows.
*
* @note Even though this method could be called multiple times this is
* currently not really supported in regards to plugin features and their
* dependencies (in particular soft dependencies).
*
* @param path path containing loadable plugins, NULL for default
* @param list space separated list of plugins to load
* @return TRUE if all critical plugins loaded successfully
*/
bool (*load)(plugin_loader_t *this, char *path, char *list);
bool (*load)(plugin_loader_t *this, char *list);
/**
* Add an additional search path for plugins.