summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-20 11:26:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-20 11:26:57 +0000
commitb0d03755f23f72e747e9874c32d00b5cf3f955cf (patch)
tree49efb80e8d46597eeb5f0eb20a2973817b221f23 /include
parent00d4806d30a1e3b111b1676ff34a75faf25d6a1b (diff)
Class Request and class Event now take a void* in their constructor to save on a cast.
Please note that the data type *returned* by GetData() in both cases is still char*, as C++ will not let you return a void*. This to be addressed by someone else with templates when they have the time. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4038 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/modules.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/modules.h b/include/modules.h
index f15341e01..426ec9a65 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -190,7 +190,7 @@ class Request : public ModuleMessage
protected:
/** This member holds a pointer to arbitary data set by the emitter of the message
*/
- char* data;
+ void* data;
/** This is a pointer to the sender of the message, which can be used to
* directly trigger events, or to create a reply.
*/
@@ -201,7 +201,7 @@ class Request : public ModuleMessage
public:
/** Create a new Request
*/
- Request(char* anydata, Module* src, Module* dst);
+ Request(void* anydata, Module* src, Module* dst);
/** Fetch the Request data
*/
char* GetData();
@@ -230,7 +230,7 @@ class Event : public ModuleMessage
protected:
/** This member holds a pointer to arbitary data set by the emitter of the message
*/
- char* data;
+ void* data;
/** This is a pointer to the sender of the message, which can be used to
* directly trigger events, or to create a reply.
*/
@@ -243,7 +243,7 @@ class Event : public ModuleMessage
public:
/** Create a new Event
*/
- Event(char* anydata, Module* src, const std::string &eventid);
+ Event(void* anydata, Module* src, const std::string &eventid);
/** Get the Event data
*/
char* GetData();