wxDL_VERBATIM = 0x00000008, // Attempt to load the supplied library
// name without appending the usual dll
// filename extension.
+
+ wxDL_NOSHARE = 0x00000010, // load new DLL, don't reuse already loaded
+
+ // FIXME: why? (VZ)
#ifdef __osf__
wxDL_DEFAULT = wxDL_LAZY
#else
// return the platform standard DLL extension (with leading dot)
- static const wxString &GetDllExt() { return ms_dllext; }
+ static const wxChar *GetDllExt() { return ms_dllext; }
wxDynamicLibrary() : m_handle(0) {}
wxDynamicLibrary(wxString libname, int flags = wxDL_DEFAULT)
// Platform specific shared lib suffix.
- static const wxString ms_dllext;
+ static const wxChar *ms_dllext;
// the handle to DLL or NULL
{
public:
- static wxDLImports ms_classes; // Static hash of all imported classes.
+ static wxDLImports* ms_classes; // Static hash of all imported classes.
wxPluginLibrary( const wxString &libname, int flags = wxDL_DEFAULT );
~wxPluginLibrary();
- wxPluginLibrary *RefLib() { ++m_linkcount; return this; }
+ wxPluginLibrary *RefLib();
bool UnrefLib();
// These two are called by the PluginSentinel on (PLUGGABLE) object
return m_entry->GetSymbol( symbol, success );
}
+ static void CreateManifest() { ms_manifest = new wxDLManifest(wxKEY_STRING); }
+ static void ClearManifest() { delete ms_manifest; ms_manifest = NULL; }
+
private:
- static wxDLManifest ms_manifest; // Static hash of loaded libs.
- wxPluginLibrary *m_entry; // Cache our entry in the manifest.
+ static wxDLManifest* ms_manifest; // Static hash of loaded libs.
+ wxPluginLibrary* m_entry; // Cache our entry in the manifest.
// We could allow this class to be copied if we really
// wanted to, but not without modification.
static void *GetSymbol(wxDllType dllHandle, const wxString &name, bool *success = 0);
- static const wxString &GetDllExt() { return wxDynamicLibrary::GetDllExt(); }
+ static wxString GetDllExt() { return wxDynamicLibrary::GetDllExt(); }
private:
};
#endif
-
#endif // wxUSE_DYNAMIC_LOADER
#endif // _WX_DYNAMICLOADER_H__
-// vi:sts=4:sw=4:et