Make the PeerPtr trick work with sync calls as well
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 27 Dec 2013 20:24:43 +0000 (21:24 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 1 Jan 2014 22:15:03 +0000 (23:15 +0100)
commit2a89d1b0c473f92c5cf9fb803d99e8b51b2c68e7
tree4d5caef7f52ea98c5688cfcfe13ee714504c7eb4
parent100a2678adf2016b7b4753d09d868929de83294e
Make the PeerPtr trick work with sync calls as well

The mechanics for replacing a PeerPtr as first argument by the
sending peer (and using it as a filter for the other direction)
are already in place; with just some tweaks we can also make it
work for sync calls in addition to RPC calls, which allows for
selectively calling methods in your sync partner.
src/common/signalproxy.cpp
src/common/signalproxy.h