[Telepathy-commits] [telepathy-salut/master] lib/gibber/gibber-bytestream-direct.c: add comment on GibberBytestreamDirectPrivate->addresses
Alban Crequy
alban.crequy at collabora.co.uk
Tue Nov 25 03:59:32 PST 2008
---
lib/gibber/gibber-bytestream-direct.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/gibber/gibber-bytestream-direct.c b/lib/gibber/gibber-bytestream-direct.c
index 8ac48b9..d223241 100644
--- a/lib/gibber/gibber-bytestream-direct.c
+++ b/lib/gibber/gibber-bytestream-direct.c
@@ -76,7 +76,11 @@ enum
typedef struct _GibberBytestreamDirectPrivate GibberBytestreamDirectPrivate;
struct _GibberBytestreamDirectPrivate
{
+ /* A list of struct sockaddr_storage to try to connect to, if
+ * this GibberBytestreamDirect object is on the initiator side.
+ * GibberBytestreamDirect own theses structures and must free them. */
GArray *addresses;
+
gchar *self_id;
gchar *peer_id;
gchar *stream_id;
@@ -650,6 +654,7 @@ gibber_bytestream_direct_initiate (GibberBytestreamIface *bytestream)
DEBUG ("Called.");
+ g_assert (priv->addresses != NULL);
if (priv->addresses->len < 1)
{
GError e = { GIBBER_XMPP_ERROR, XMPP_ERROR_ITEM_NOT_FOUND,
--
1.5.6.5
More information about the Telepathy-commits
mailing list