summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-09-19 10:28:02 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-09-19 10:28:02 +0000
commitfe0992a6aba0a7a95b666ecb52df8ce1a6d5a723 (patch)
tree5d45b54d05662b624b86a12bf94bd586bf77e68a /include/modules.h
parentaa896a87ac4705a5a8a26cbf5ddae2db3fc54c62 (diff)
BUILD : 1.7.5 (351) BUGS : N/A NOTES : Rewrote the internals of moduleData, this will save _lots_ of memory especially on larger networks. The downside is modules using it need to make a tiny, tiny change... :/
git-svn-id: svn://svn.anope.org/anope/trunk@351 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@227 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/modules.h b/include/modules.h
index d240ab79b..500d5e025 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -220,12 +220,14 @@ int moduleAddCallback(char *name,time_t when,int (*func)(int argc, char *argv[])
void moduleDelCallback(char *name);
void moduleCallBackRun(void);
-char *moduleGetData(ModuleData *md[], char *key); /* Get the value for this key from this struct */
-int moduleAddData(ModuleData *md[], char *key, char *value); /* Set the value for this key for this struct */
-void moduleDelData(ModuleData *md[], char *key); /* Delete this key/value pair */
-void moduleDelAllData(ModuleData *md[]); /* Delete all key/value pairs for this module for this struct */
-void moduleCleanStruct(ModuleData * moduleData[]); /* Clean a moduleData hash */
+char *moduleGetData(ModuleData **md, char *key); /* Get the value for this key from this struct */
+int moduleAddData(ModuleData **md, char *key, char *value); /* Set the value for this key for this struct */
+void moduleDelData(ModuleData **md, char *key); /* Delete this key/value pair */
+void moduleDelAllData(ModuleData **md); /* Delete all key/value pairs for this module for this struct */
+void moduleCleanStruct(ModuleData **moduleData); /* Clean a moduleData hash */
void moduleDelAllDataMod(Module *m); /* remove all module data from all structs for this module */
+int moduleDataDebug(ModuleData **md); /* Allow for debug output of a moduleData struct */
+boolean moduleMinVersion(int major,int minor,int patch,int build); /* Checks if the current version of anope is before or after a given verison */
/*************************************************************************/