diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-07 23:52:29 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-07 23:52:29 +0000 |
commit | 95774907e1d239dc9261f19b58a6044598ae078c (patch) | |
tree | d24106fd72b34f9904d8dd1868899926f54c4a7c /include/modules.h | |
parent | 67b7ab7af642b5c35521562ba44c8c9f94ab5c0c (diff) |
Remove createModule stuff.. instead, pass string to loadModule. This still isn't compiling, but it's yet another step closer.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1572 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h index 31cf9bf0a..1b5307614 100644 --- a/include/modules.h +++ b/include/modules.h @@ -269,7 +269,15 @@ struct EvtHookHash_ { int addModule(Module *m); /* Add a module to the module hash */ int delModule(Module *m); /* Remove a module from the module hash */ MDE Module *findModule(const char *name); /* Find a module */ -int loadModule(Module *m,User *u); /* Load the given module into the program */ + +/** Loads a given Anope module into the core, initialising relevant structures, + * and calls the module's constructor. + * @param modname The name of the module to load (e.g. os_modload) + * @param u The user loading the module, or NULL for no user. + * @return XXX, document me. + */ +int loadModule(const std::string &modname, User *u); + int encryption_module_init(void); /* Load the encryption module */ int protocol_module_init(void); /* Load the IRCD Protocol Module up*/ int unloadModule(Module *m, User *u); /* Unload the given module from the pro */ @@ -296,7 +304,7 @@ MDE int moduleAddAdminHelp(Command * c, int (*func) (User * u)); MDE int moduleAddRootHelp(Command * c, int (*func) (User * u)); MDE void moduleSetType(MODType type); extern MDE Module *mod_current_module; -extern MDE char *mod_current_module_name; +extern MDE const char *mod_current_module_name; extern MDE char *mod_current_buffer; extern MDE int mod_current_op; extern MDE User *mod_current_user; |