diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 01:54:17 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 01:54:17 +0000 |
commit | 1c3b8e15c2c5ab96146ddc7573cf5d05f28967fe (patch) | |
tree | 4f6a0a688c8a3874c850826c12bd972082d0bfa1 /include/modules.h | |
parent | 7bac547f555a5ec93a89a3433ae74152dbbc3e89 (diff) |
moduleAddVersion -> Module::SetVersion
moduleAddAuthor -> Module::SetAuthor
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1590 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/modules.h b/include/modules.h index 0aee1d758..7b179b20b 100644 --- a/include/modules.h +++ b/include/modules.h @@ -140,8 +140,8 @@ CoreExport class Module char *filename; void *handle; time_t time; - char *version; - char *author; + std::string version; + std::string author; MODType type; @@ -170,6 +170,16 @@ CoreExport class Module */ void SetType(MODType type); + /** Set the modules version info. + * @param version the version of the module + */ + void SetVersion(const std::string &version); + + /** Set the modules author info + * @param author the author of the module + */ + void SetAuthor(const std::string &author); + /** * Allow a module to add a set of language strings to anope * @param langNumber the language number for the strings @@ -311,8 +321,6 @@ 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 */ int prepForUnload(Module *m); /* Prepare the module for unload */ -MDE void moduleAddVersion(const char *version); -MDE void moduleAddAuthor(const char *author); void modules_init(void); void modules_delayed_init(void); void moduleCallBackPrepForUnload(const char *mod_name); |