]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/dynamic.h
Allow modules to prevent a failed connection from being closed.
[user/henk/code/inspircd.git] / include / dynamic.h
index d42cf61bf965855dbbb8231e374543f1b5b04ada..c14452f8c1f42a7401ee48cace9e29695f69d476 100644 (file)
@@ -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();
 };