From f9636a2eff46f6829bf9e01c711ab1ba45a7d50a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 22:40:57 +0000 Subject: So much stuff changed in this one, i forgot most of it. Oh yeah, main thing is ModeHandler and ModeWatcher classes now take an InspIRCd* to their constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4858 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/dynamic.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/dynamic.h') diff --git a/include/dynamic.h b/include/dynamic.h index 386ebb376..4440c476d 100644 --- a/include/dynamic.h +++ b/include/dynamic.h @@ -22,10 +22,12 @@ typedef void * (initfunc) (void); #include "inspircd_config.h" +class InspIRCd; + class DLLManager { public: - DLLManager(const char *fname); + DLLManager(InspIRCd* ServerInstance, const char *fname); virtual ~DLLManager(); @@ -52,7 +54,7 @@ class DLLManager class DLLFactoryBase : public DLLManager { public: - DLLFactoryBase(const char *fname, const char *func_name = 0); + DLLFactoryBase(InspIRCd* Instance, const char *fname, const char *func_name = 0); virtual ~DLLFactoryBase(); #ifdef STATIC_LINK initfunc *factory_func; @@ -64,7 +66,7 @@ class DLLFactoryBase : public DLLManager template class DLLFactory : public DLLFactoryBase { public: - DLLFactory(const char *fname, const char *func_name=0) : DLLFactoryBase(fname,func_name) + DLLFactory(InspIRCd* Instance, const char *fname, const char *func_name=0) : DLLFactoryBase(Instance, fname, func_name) { if (factory_func) factory = reinterpret_cast(factory_func()); -- cgit v1.2.3