diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index ad56cbf87..f9c16f7b3 100644 --- a/include/modules.h +++ b/include/modules.h @@ -97,6 +97,7 @@ typedef void * ano_module_t; /*************************************************************************/ typedef enum { CORE,PROTOCOL,THIRD,SUPPORTED,QATESTED } MODType; +typedef enum { MOD_OP_LOAD, MOD_OP_UNLOAD } ModuleOperation; /*************************************************************************/ /* Structure for information about a *Serv command. */ @@ -106,6 +107,7 @@ typedef struct CommandHash_ CommandHash; typedef struct Module_ Module; typedef struct ModuleLang_ ModuleLang; typedef struct ModuleHash_ ModuleHash; +typedef struct ModuleQueue_ ModuleQueue; typedef struct Message_ Message; typedef struct MessageHash_ MessageHash; typedef struct ModuleCallBack_ ModuleCallBack; @@ -160,6 +162,14 @@ struct ModuleHash_ { ModuleHash *next; }; +struct ModuleQueue_ { + Module *m; + ModuleOperation op; + User *u; + + ModuleQueue *next; +}; + struct Command_ { char *name; int (*routine)(User *u); @@ -357,6 +367,12 @@ int moduleDataDebug(ModuleData **md); /* Allow for debug output of a moduleD MDE boolean moduleMinVersion(int major,int minor,int patch,int build); /* Checks if the current version of anope is before or after a given verison */ /*************************************************************************/ +/* Module Queue Operations */ +MDE int queueModuleLoad(char *name, User *u); +MDE int queueModuleUnload(char *name, User *u); +MDE void handleModuleOperationQueue(void); + +/*************************************************************************/ /* Some IRCD protocol module support functions */ /** Update the protect deatials, could be either protect or admin etc.. */ |
