diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-19 00:23:14 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-19 00:23:14 +0000 |
| commit | c917ca5a34340f1020d4fe5b963232241efd5974 (patch) | |
| tree | 378cec0c00c6d297325443dec2a56ddc1f7ff956 /include | |
| parent | 23f5e9de79047b448282d6984db3f12511b751eb (diff) | |
Remove (and neuter) old event system. Not used by anything in core.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2116 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules.h | 44 |
1 files changed, 5 insertions, 39 deletions
diff --git a/include/modules.h b/include/modules.h index 3af5f3bd9..048268740 100644 --- a/include/modules.h +++ b/include/modules.h @@ -195,8 +195,11 @@ typedef struct ModuleHash_ ModuleHash; typedef struct Message_ Message; typedef struct MessageHash_ MessageHash; typedef struct ModuleCallBack_ ModuleCallBack; -typedef struct EvtHook_ EvtHook; -typedef struct EvtHookHash_ EvtHookHash; + +/*************************************************************************/ + + + extern MDE CommandHash *HOSTSERV[MAX_CMD_HASH]; extern MDE CommandHash *BOTSERV[MAX_CMD_HASH]; @@ -206,7 +209,6 @@ extern MDE CommandHash *CHANSERV[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 EvtHookHash *EVENTHOOKS[MAX_CMD_HASH]; struct ModuleLang_ { int argc; @@ -430,20 +432,6 @@ class CoreExport Module **/ void NoticeLang(char *source, User * u, int number, ...); - /** 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 AddEventHook(EvtHook *evh); - - /** - * 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 DelEventHook(const char *name); - /** * Add a module provided command to the given service. * e.g. AddCommand(NICKSERV,c,MOD_HEAD); @@ -675,20 +663,6 @@ struct ModuleCallBack_ { ModuleCallBack *next; }; -struct EvtHook_ { - int (*func)(int argc, char **argv); - int core; - char *name; - char *mod_name; - EvtHook *next; -}; - -struct EvtHookHash_ { - char *name; - EvtHook *evh; - EvtHookHash *next; -}; - /*************************************************************************/ /* Module Managment Functions */ @@ -724,14 +698,6 @@ int destroyMessage(Message *m); /* destroy a Message*/ /*************************************************************************/ -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); -int delEventHook(EvtHookHash * HookEvtTable[], EvtHook * evh, const char *mod_name); -int destroyEventHook(EvtHook * evh); - -/*************************************************************************/ - MDE bool moduleMinVersion(int major,int minor,int patch,int build); /* Checks if the current version of anope is before or after a given verison */ /*************************************************************************/ |
