Implement standard mechanism to find plugins on the system

First searches in current directory, then searches directories in
$PATH.
This commit is contained in:
TheAssassin
2018-06-19 20:46:53 +02:00
parent e977d16dc9
commit 12c7ec7166
2 changed files with 40 additions and 0 deletions

View File

@@ -62,5 +62,10 @@ namespace linuxdeploy {
* This function automatically selects the correct subclass implementing the right API level, and
*/
IPlugin* createPluginInstance(const boost::filesystem::path& path);
/*
* Finds all linuxdeploy plugins in $PATH and the current executable's directory and returns IPlugin instances for them.
*/
std::vector<IPlugin*> findPlugins();
}
}