]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/dynamic.h
Update the exemptchanops module section in modules.conf.example with missing exemptions.
[user/henk/code/inspircd.git] / include / dynamic.h
index 5e66ddbb0493938a440eb42afcabf1f3c0447833..c14452f8c1f42a7401ee48cace9e29695f69d476 100644 (file)
@@ -20,8 +20,7 @@
  */
 
 
-#ifndef DLL_H
-#define DLL_H
+#pragma once
 
 /** The DLLManager class is able to load a module file by filename,
  * and locate its init_module symbol.
@@ -33,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()
@@ -62,9 +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();
 };
-
-#endif
-