[telepathy-mission-control/master] part of fd.o #20909: McdDispatcher: work out the dispatch operation path, but don't use it yet
Simon McVittie
simon.mcvittie at collabora.co.uk
Fri Apr 17 08:21:05 PDT 2009
This will be passed to ObserveChannels when we break API.
---
src/mcd-dispatcher.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index e8ddc9d..060dc98 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -1247,6 +1247,7 @@ mcd_dispatcher_run_observers (McdDispatcherContext *context)
{
McdDispatcherPrivate *priv = context->dispatcher->priv;
const GList *cl, *channels;
+ const gchar *dispatch_operation_path = "/";
GHashTable *observer_info;
GHashTableIter iter;
McdClient *client;
@@ -1290,6 +1291,15 @@ mcd_dispatcher_run_observers (McdDispatcherContext *context)
* if the observed list is the same */
channels_array = _mcd_channel_details_build_from_list (observed);
+ if (context->operation)
+ {
+ dispatch_operation_path =
+ mcd_dispatch_operation_get_path (context->operation);
+ }
+
+ /* will only be passed to the Observer when we break API */
+ (void) dispatch_operation_path;
+
context->client_locks++;
mcd_dispatcher_context_ref (context);
mc_cli_client_observer_call_observe_channels (client->proxy, -1,
--
1.5.6.5
More information about the telepathy-commits
mailing list