]> 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 3be91992963380455df0023e34109670702d11c8..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,6 +32,10 @@ class CoreExport DLLManager : public classbase
         */
        std::string err;
 
+       /** Sets the last error string
+       */
+       void RetrieveLastError();
+
  public:
        /** This constructor loads the module using dlopen()
         * @param fname The filename to load. This should be within
@@ -56,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
-