summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 12:50:32 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 12:50:32 +0000
commit3fce6d680ddf0c10d93af69231c22c3960023393 (patch)
treed0907f2a844671be84cd52b85d679b0d8151a3a6 /include
parent4ff3aaccd8425c9ead5e9c04251cab0e2e3f828f (diff)
Remove src/modules/demos, we've sufficient (real world) demos now, and some of these are quite out of date.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1690 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/modules.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/include/modules.h b/include/modules.h
index 6564f0fbd..30875e664 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -129,8 +129,6 @@ typedef struct ModuleHash_ ModuleHash;
typedef struct Message_ Message;
typedef struct MessageHash_ MessageHash;
typedef struct ModuleCallBack_ ModuleCallBack;
-typedef struct EvtMessage_ EvtMessage;
-typedef struct EvtMessageHash_ EvtMessageHash;
typedef struct EvtHook_ EvtHook;
typedef struct EvtHookHash_ EvtHookHash;
@@ -143,7 +141,6 @@ extern MDE CommandHash *HELPSERV[MAX_CMD_HASH];
extern MDE CommandHash *OPERSERV[MAX_CMD_HASH];
extern MDE MessageHash *IRCD[MAX_CMD_HASH];
extern MDE ModuleHash *MODULE_HASH[MAX_CMD_HASH];
-extern MDE EvtMessageHash *EVENT[MAX_CMD_HASH];
extern MDE EvtHookHash *EVENTHOOKS[MAX_CMD_HASH];
struct ModuleLang_ {
@@ -237,19 +234,6 @@ CoreExport class Module
**/
int AddEventHook(EvtHook *evh);
- /** Add a module message to the IRCD message hash
- * @param m the Message to add
- * @param pos the Position to add the message to, e.g. MOD_HEAD, MOD_TAIL, MOD_UNIQUE
- * @return MOD_ERR_OK on success, althing else on fail.
- **/
- int AddEventHandler(EvtMessage *evm);
-
- /** Remove the given message from the IRCD message hash
- * @param name the name of the message to remove
- * @return MOD_ERR_OK on success, althing else on fail.
- **/
- int DelEventHandler(const char *name);
-
/**
* remove the given message from the IRCD message hash
* @param name the name of the message to remove
@@ -379,21 +363,6 @@ struct ModuleCallBack_ {
ModuleCallBack *next;
};
-struct EvtMessage_ {
- char *name;
- int (*func)(const char *source, int ac, const char **av);
- int core;
- char *mod_name;
- EvtMessage *next;
-};
-
-struct EvtMessageHash_ {
- char *name;
- EvtMessage *evm;
- EvtMessageHash *next;
-};
-
-
struct EvtHook_ {
int (*func)(int argc, char **argv);
int core;
@@ -459,13 +428,6 @@ int destroyMessage(Message *m); /* destroy a Message*/
/*************************************************************************/
-MDE EvtMessage *createEventHandler(char *name, int (*func) (const char *source, int ac, const char **av));
-EvtMessage *findEventHandler(EvtMessageHash * msgEvtTable[], const char *name);
-int addCoreEventHandler(EvtMessageHash * msgEvtTable[], EvtMessage * evm);
-int delEventHandler(EvtMessageHash * msgEvtTable[], EvtMessage * evm, const char *mod_name);
-int destroyEventHandler(EvtMessage * evm);
-int addEventHandler(EvtMessageHash * msgEvtTable[], EvtMessage * evm);
-
MDE EvtHook *createEventHook(const char *name, int (*func) (int argc, char **argv));
EvtHook *findEventHook(EvtHookHash * HookEvtTable[], const char *name);
int addCoreEventHook(EvtHookHash * HookEvtTable[], EvtHook * evh);