From 1c3b8e15c2c5ab96146ddc7573cf5d05f28967fe Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Sat, 8 Nov 2008 01:54:17 +0000 Subject: moduleAddVersion -> Module::SetVersion moduleAddAuthor -> Module::SetAuthor git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1590 5417fbe8-f217-4b02-8779-1006273d7864 --- include/modules.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'include') 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); -- cgit