summaryrefslogtreecommitdiff
path: root/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-04-28 20:18:10 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-04-28 20:18:10 +0000
commitfba6022e42fc80bbbd4912e2a4591889844907e2 (patch)
treea836b3964ffe7804333fd7898760c853347464b4 /modules.h
parent33b49b12cbefc51f2d9d09cdc3e96fa10b271be7 (diff)
BUILD : 1.7.2 (74) BUGS : N/A NOTES : Added moduleAddData() and moduleGetData() currently only added to the User struct as a test
git-svn-id: svn://svn.anope.org/anope/trunk@74 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@50 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'modules.h')
-rw-r--r--modules.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules.h b/modules.h
index 3568b55a7..59f99ab41 100644
--- a/modules.h
+++ b/modules.h
@@ -64,6 +64,7 @@ typedef struct Message_ Message;
typedef struct MessageHash_ MessageHash;
typedef struct ModuleCallBack_ ModuleCallBack;
+
extern CommandHash *HOSTSERV[MAX_CMD_HASH];
extern CommandHash *BOTSERV[MAX_CMD_HASH];
extern CommandHash *MEMOSERV[MAX_CMD_HASH];
@@ -218,6 +219,14 @@ Message *findMessage(MessageHash *msgTable[], const char *name);
int moduleAddCallback(char *name,time_t when,int (*func)(int argc, char *argv[]),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 moduleDelAllDataMod(Module *m); /* remove all module data from all structs for this module */
+
/*************************************************************************/
#endif