X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fdynamic.h;h=c14452f8c1f42a7401ee48cace9e29695f69d476;hb=9ea8ecfaf395955a4e58c743c2f9e35a26528039;hp=d42cf61bf965855dbbb8231e374543f1b5b04ada;hpb=8f5efbc7aa33b792e02d01e3288f553e6e98ccaa;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/dynamic.h b/include/dynamic.h index d42cf61bf..c14452f8c 100644 --- a/include/dynamic.h +++ b/include/dynamic.h @@ -32,11 +32,9 @@ class CoreExport DLLManager : public classbase */ std::string err; -#ifdef _WIN32 /** Sets the last error string */ void RetrieveLastError(); -#endif public: /** This constructor loads the module using dlopen() @@ -61,6 +59,12 @@ class CoreExport DLLManager : public classbase */ Module* CallInit(); + /** Retrieves the value of the specified symbol. + * @param name The name of the symbol to retrieve. + * @return Either the value of the specified symbol or or NULL if it does not exist. + */ + void* GetSymbol(const char* name); + /** Get detailed version information from the module file */ std::string GetVersion(); };