added SharedLibrary::setSearchPath()

This commit is contained in:
Günter Obiltschnig
2019-08-17 10:04:48 +02:00
parent df4cb29ea5
commit 325cfcb3c2
12 changed files with 68 additions and 7 deletions

View File

@@ -122,6 +122,16 @@ public:
/// (e.g., "d.so", "d.dll") unless the library has
/// been compiled with -DPOCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX.
static bool setSearchPath(const std::string& path);
/// Adds the given path to the list of paths shared libraries
/// are searched in.
///
/// Returns true if the path was set, otherwise false.
///
/// Currently only supported on Windows, where it calls
/// SetDllDirectory(). On all other platforms, does not
/// do anything and returns false.
private:
SharedLibrary(const SharedLibrary&);
SharedLibrary& operator = (const SharedLibrary&);