Index: ipc/ipc_message.h |
=================================================================== |
--- ipc/ipc_message.h (revision 270218) |
+++ ipc/ipc_message.h (working copy) |
@@ -141,34 +141,20 @@ |
// call. |
void SetHeaderValues(int32 routing, uint32 type, uint32 flags); |
- template<class T, class S> |
- static bool Dispatch(const Message* msg, T* obj, S* sender, |
+ template<class T, class S, class P> |
+ static bool Dispatch(const Message* msg, T* obj, S* sender, P* parameter, |
void (T::*func)()) { |
(obj->*func)(); |
return true; |
} |
- template<class T, class S> |
- static bool Dispatch(const Message* msg, T* obj, S* sender, |
- void (T::*func)() const) { |
- (obj->*func)(); |
+ template<class T, class S, class P> |
+ static bool Dispatch(const Message* msg, T* obj, S* sender, P* parameter, |
+ void (T::*func)(P*)) { |
+ (obj->*func)(parameter); |
return true; |
} |
- template<class T, class S> |
- static bool Dispatch(const Message* msg, T* obj, S* sender, |
- void (T::*func)(const Message&)) { |
- (obj->*func)(*msg); |
- return true; |
- } |
- |
- template<class T, class S> |
- static bool Dispatch(const Message* msg, T* obj, S* sender, |
- void (T::*func)(const Message&) const) { |
- (obj->*func)(*msg); |
- return true; |
- } |
- |
// Used for async messages with no parameters. |
static void Log(std::string* name, const Message* msg, std::string* l) { |
} |