From d17465716790010b6e3221f9ce49272110276ccf Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 11 Aug 2006 12:15:03 +0000 Subject: Now two types of log macro, log() and ilog(). log() assumes an InspIRCd object called ServerInstance, ilog() takes an InspIRCd object as first param. TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socketengine.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/socketengine.h') diff --git a/include/socketengine.h b/include/socketengine.h index a788618a2..5ccfa801e 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -46,6 +46,8 @@ const char X_ESTAB_DNS = 4; */ const char X_READBIT = 0x80; +class InspIRCd; + /** * The actual socketengine class presents the * same interface on all operating systems, but @@ -67,6 +69,7 @@ const char X_READBIT = 0x80; class SocketEngine : public Extensible { protected: + InspIRCd* ServerInstance; int EngineHandle; /* Handle to the socket engine if needed */ int CurrentSetSize; /* Current number of descriptors in the engine */ char ref[MAX_DESCRIPTORS]; /* Reference table */ @@ -80,7 +83,7 @@ public: * epoll on a 2.4 linux kernel) then this * function may bail back to the shell. */ - SocketEngine(); + SocketEngine(InspIRCd* Instance); /** Destructor * The destructor transparently tidies up -- cgit v1.2.3