Modified DynLib/PluginManager interface

Former-commit-id: 2dae56cad852a46c9bac828cc7775a4da42c96cf
This commit is contained in:
Lynix
2014-01-05 15:30:27 +01:00
parent 3625713914
commit 3dd8b8fce1
6 changed files with 30 additions and 34 deletions

View File

@@ -36,21 +36,21 @@ class NzDynLib : NzNonCopyable
friend NzDynLibImpl;
public:
NzDynLib(const NzString& libraryPath);
NzDynLib();
~NzDynLib();
NzString GetLastError() const;
NzDynLibFunc GetSymbol(const NzString& symbol) const;
bool Load();
bool IsLoaded() const;
bool Load(const NzString& libraryPath, bool appendExtension = true);
void Unload();
private:
void SetLastError(const NzString& error);
NazaraMutexAttrib(m_mutex, mutable)
NzString m_lastError;
NzString m_path;
mutable NzString m_lastError;
NzDynLibImpl* m_impl;
};