* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2008 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
#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.
*/
/** The last error string, or NULL
*/
- char *err;
+ const char *err;
public:
/** This constructor loads the module using dlopen()
/** 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;
}
}
}
+ /** Calls the 'init_module' C exported function within a module, which
+ * returns a pointer to a Module derived object.
+ */
ReturnType* CallInit()
{
if(init_func)
};
#endif
+