]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/dynamic.h
Remove comment, as it is now done.
[user/henk/code/inspircd.git] / include / dynamic.h
index 63229febbcc58d9ac184e6faff50520cf27109c5..51aaaa3cd261963e294476fb0252aa300df44e26 100644 (file)
@@ -14,8 +14,6 @@
 #ifndef __DLL_H
 #define __DLL_H
 
-#include "inspircd_config.h"
-
 /** The DLLManager class is able to load a module file by filename,
  * and locate its init_module symbol.
  */
@@ -25,7 +23,7 @@ class CoreExport DLLManager
 
        /** The last error string, or NULL
         */
-       char *err;
+       const char *err;
  
  public:
        /** This constructor loads the module using dlopen()
@@ -46,7 +44,7 @@ class CoreExport DLLManager
        /** Get the last error from dlopen() or dlsym().
         * @return The last error string, or NULL if no error has occured.
         */
-       char* LastError() 
+       const char* LastError()
        {
                 return err;
        }
@@ -139,6 +137,9 @@ template <typename ReturnType> class CoreExport DLLFactory : public DLLManager
                }
        }
        
+       /** Calls the 'init_module' C exported function within a module, which
+        * returns a pointer to a Module derived object.
+        */
        ReturnType* CallInit()
        {
                if(init_func)
@@ -159,3 +160,4 @@ template <typename ReturnType> class CoreExport DLLFactory : public DLLManager
 };
 
 #endif
+