[Telepathy-commits] [telepathy-glib/master] BaseConnection: add a yours field to ChannelRequest

Will Thompson will.thompson at collabora.co.uk
Wed Sep 17 16:47:56 PDT 2008


---
 telepathy-glib/base-connection.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index da5542e..6a55544 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -304,6 +304,12 @@ struct _ChannelRequest
   guint handle;
   /* always TRUE for CREATE */
   gboolean suppress_handler;
+
+  /* only meaningful for METHOD_ENSURE_CHANNEL; only true if this is the first
+   * request to be satisfied with a particular channel, and no other request
+   * satisfied by that channel has a different method.
+   */
+  gboolean yours;
 };
 
 static ChannelRequest *
@@ -327,6 +333,7 @@ channel_request_new (DBusGMethodInvocation *context,
   ret->handle_type = handle_type;
   ret->handle = handle;
   ret->suppress_handler = suppress_handler;
+  ret->yours = FALSE;
 
   DEBUG("New channel request at %p: ctype=%s htype=%d handle=%d suppress=%d",
         ret, channel_type, handle_type, handle, suppress_handler);
-- 
1.5.6.5




More information about the Telepathy-commits mailing list