[Telepathy-commits] [telepathy-glib/master] ExampleCallableMediaChannel: start a counter for stream IDs

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Mar 10 09:23:25 PDT 2009


Gabble starts at 1; so will we. (Is 0 reserved? telepathy-spec doesn't
say anything about it being special...)
---
 examples/cm/callable/media-channel.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/examples/cm/callable/media-channel.c b/examples/cm/callable/media-channel.c
index 5de7aca..3a5b637 100644
--- a/examples/cm/callable/media-channel.c
+++ b/examples/cm/callable/media-channel.c
@@ -82,6 +82,8 @@ struct _ExampleCallableMediaChannelPrivate
   TpHandle handle;
   TpHandle initiator;
 
+  guint next_stream_id;
+
   /* These are really booleans, but gboolean is signed. Thanks, GLib */
   unsigned locally_requested:1;
   unsigned closed:1;
@@ -99,6 +101,8 @@ example_callable_media_channel_init (ExampleCallableMediaChannel *self)
   self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
       EXAMPLE_TYPE_CALLABLE_MEDIA_CHANNEL,
       ExampleCallableMediaChannelPrivate);
+
+  self->priv->next_stream_id = 1;
 }
 
 static void
-- 
1.5.6.5




More information about the telepathy-commits mailing list