From ef48486b09587a73568a35a1dfe9e3cab7a44ebb Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 24 Jul 2018 10:02:27 +0100 Subject: Rename IntModuleList to Module::List. --- include/modules.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 082079cd9..9355712bf 100644 --- a/include/modules.h +++ b/include/modules.h @@ -114,8 +114,8 @@ struct ModResult { * 'FOREACH_MOD(OnConnect,(user));' */ #define FOREACH_MOD(y,x) do { \ - const IntModuleList& _handlers = ServerInstance->Modules->EventHandlers[I_ ## y]; \ - for (IntModuleList::const_reverse_iterator _i = _handlers.rbegin(), _next; _i != _handlers.rend(); _i = _next) \ + const Module::List& _handlers = ServerInstance->Modules->EventHandlers[I_ ## y]; \ + for (Module::List::const_reverse_iterator _i = _handlers.rbegin(), _next; _i != _handlers.rend(); _i = _next) \ { \ _next = _i+1; \ try \ @@ -137,8 +137,8 @@ struct ModResult { */ #define DO_EACH_HOOK(n,v,args) \ do { \ - const IntModuleList& _handlers = ServerInstance->Modules->EventHandlers[I_ ## n]; \ - for (IntModuleList::const_reverse_iterator _i = _handlers.rbegin(), _next; _i != _handlers.rend(); _i = _next) \ + const Module::List& _handlers = ServerInstance->Modules->EventHandlers[I_ ## n]; \ + for (Module::List::const_reverse_iterator _i = _handlers.rbegin(), _next; _i != _handlers.rend(); _i = _next) \ { \ _next = _i+1; \ try \ @@ -244,9 +244,13 @@ class CoreExport Module : public classbase, public usecountbase void DetachEvent(Implementation i); public: + /** A list of modules. */ + typedef std::vector List; + /** File that this module was loaded from */ std::string ModuleSourceFile; + /** Reference to the dlopen() value */ DLLManager* ModuleDLLManager; @@ -963,10 +967,6 @@ class CoreExport Module : public classbase, public usecountbase virtual void OnServiceDel(ServiceProvider& service); }; -/** A list of modules - */ -typedef std::vector IntModuleList; - /** ModuleManager takes care of all things module-related * in the core. */ @@ -1012,7 +1012,7 @@ class CoreExport ModuleManager : public fakederef /** Event handler hooks. * This needs to be public to be used by FOREACH_MOD and friends. */ - IntModuleList EventHandlers[I_END]; + Module::List EventHandlers[I_END]; /** List of data services keyed by name */ std::multimap DataProviders; -- cgit v1.2.3