summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-26 16:36:37 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-26 16:36:37 +0000
commit6344881c9f672d6cfdc8dd4818e79928181af0e1 (patch)
treecdb8b133264a2008c863c5a558b962e793873e75 /include/inspircd.h
parente0b2608b68b495fbb4a70d4bbe649a7e3cb70076 (diff)
Move a ton of stuff into caller* functors
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7578 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 90bd0d70d..e903e273f 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -237,9 +237,11 @@ typedef std::map<irc::string, unsigned int> clonemap;
class InspIRCd;
+DEFINE_HANDLER1(ProcessUserHandler, void, userrec*);
DEFINE_HANDLER1(IsNickHandler, bool, const char*);
DEFINE_HANDLER1(IsIdentHandler, bool, const char*);
DEFINE_HANDLER1(FindDescriptorHandler, userrec*, int);
+DEFINE_HANDLER1(FloodQuitUserHandler, void, userrec*);
/* Forward declaration - required */
class XLineManager;
@@ -381,9 +383,11 @@ class CoreExport InspIRCd : public classbase
/**** Functors ****/
+ ProcessUserHandler HandleProcessUser;
IsNickHandler HandleIsNick;
IsIdentHandler HandleIsIdent;
FindDescriptorHandler HandleFindDescriptor;
+ FloodQuitUserHandler HandleFloodQuitUser;
/** InspSocket classes pending deletion after being closed.
* We don't delete these immediately as this may cause a segmentation fault.
@@ -532,7 +536,7 @@ class CoreExport InspIRCd : public classbase
* @return There is no actual return value, however upon exit, the user 'cu' may have been
* marked for deletion in the global CullList.
*/
- void ProcessUser(userrec* cu);
+ caller1<void, userrec*> ProcessUser;
/** Get the total number of currently loaded modules
* @return The number of loaded modules
@@ -1191,7 +1195,7 @@ class CoreExport InspIRCd : public classbase
* fully registered yet, temporarily zline their IP.
* @param current user to quit
*/
- void FloodQuitUser(userrec* current);
+ caller1<void, userrec*> FloodQuitUser;
/** Restart the server.
* This function will not return. If an error occurs,
@@ -1234,6 +1238,11 @@ class CoreExport InspIRCd : public classbase
* be culled.
*/
void InspSocketCull();
+
+ char* GetReadBuffer()
+ {
+ return this->ReadBuffer;
+ }
};
#endif