diff options
-rw-r--r-- | include/modules.h | 8 | ||||
-rw-r--r-- | src/modules.cpp | 8 |
2 files changed, 8 insertions, 8 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(); diff --git a/src/modules.cpp b/src/modules.cpp index ab49859fe..24b3e1945 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -156,11 +156,11 @@ Version::Version(int major, int minor, int revision, int build, int flags) : Maj Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; -Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { }; +Request::Request(void* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { }; char* Request::GetData() { - return this->data; + return (char*)this->data; } Module* Request::GetSource() @@ -185,11 +185,11 @@ char* Request::Send() } } -Event::Event(char* anydata, Module* src, const std::string &eventid) : data(anydata), source(src), id(eventid) { }; +Event::Event(void* anydata, Module* src, const std::string &eventid) : data(anydata), source(src), id(eventid) { }; char* Event::GetData() { - return this->data; + return (char*)this->data; } Module* Event::GetSource() |