sockets documentation and cleanup
[chaz/yoink] / src / Moof / Dispatch.cc
index 83fecae279fac9b336928531fa0b4c67a885d326..af0faea390ce4bb17175607cdeb15813ffd93be7 100644 (file)
@@ -72,7 +72,7 @@ public:
                mHandles.erase(id);
        }
 
-       void dispatch(const std::string& event, const Message* message)
+       void dispatch(const std::string& event)
        {
                std::pair<CallbackIt,CallbackIt>
                        callbacks(mCallbacks.equal_range(event));
@@ -80,7 +80,7 @@ public:
                for (CallbackIt it = callbacks.first; it != callbacks.second; ++it)
                {
                        Function callback = (*it).second.second;
-                       callback(message);
+                       callback();
                }
        }
 
@@ -131,10 +131,10 @@ void Dispatch::removeTarget(unsigned id)
 }
 
 
-void Dispatch::dispatch(const std::string& event, const Message* message)
+void Dispatch::dispatch(const std::string& event)
 {
        // pass through
-       mImpl->dispatch(event, message);
+       mImpl->dispatch(event);
 }
 
 
This page took 0.019431 seconds and 4 git commands to generate.