summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-03-16 10:56:09 +0000
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-03-16 10:56:09 +0000
commitf89e2b1d8bb03138c11437148ef3c85a95aa4b2f (patch)
tree34830026e260030cbac282e7a14a77cb561fe89f /lib
parente623f4b62512508af7f9bd30965e1d8e17a6f74c (diff)
gibber: update to meta porter API changes
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'lib')
-rw-r--r--lib/gibber/gibber-bytestream-oob.c4
-rw-r--r--lib/gibber/gibber-oob-file-transfer.c8
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/gibber/gibber-bytestream-oob.c b/lib/gibber/gibber-bytestream-oob.c
index 8514943e..c2ec7ad8 100644
--- a/lib/gibber/gibber-bytestream-oob.c
+++ b/lib/gibber/gibber-bytestream-oob.c
@@ -279,7 +279,7 @@ connect_to_url (GibberBytestreamOOB *self)
}
conn = wocky_meta_porter_borrow_connection (WOCKY_META_PORTER (priv->porter),
- priv->contact);
+ WOCKY_LL_CONTACT (priv->contact));
if (conn != NULL)
socket_address = g_socket_connection_get_remote_address (conn, NULL);
@@ -392,7 +392,7 @@ parse_oob_init_iq (GibberBytestreamOOB *self,
priv->url = g_strdup (url);
wocky_meta_porter_open_async (WOCKY_META_PORTER (priv->porter),
- priv->contact, NULL, opened_cb, self);
+ WOCKY_LL_CONTACT (priv->contact), NULL, opened_cb, self);
return TRUE;
}
diff --git a/lib/gibber/gibber-oob-file-transfer.c b/lib/gibber/gibber-oob-file-transfer.c
index 350ac016..0bd3ba17 100644
--- a/lib/gibber/gibber-oob-file-transfer.c
+++ b/lib/gibber/gibber-oob-file-transfer.c
@@ -501,7 +501,7 @@ create_transfer_offer (GibberOobFileTransfer *self,
"contact", &contact,
NULL);
- conn = wocky_meta_porter_borrow_connection (porter, contact);
+ conn = wocky_meta_porter_borrow_connection (porter, WOCKY_LL_CONTACT (contact));
g_object_unref (porter);
g_object_unref (contact);
@@ -799,7 +799,8 @@ porter_open_cb (GObject *source_object,
* time. http://bugzilla.gnome.org/show_bug.cgi?id=522519
* We have to check which IP will be send when creating the stanza. */
- conn = wocky_meta_porter_borrow_connection (porter, contact);
+ conn = wocky_meta_porter_borrow_connection (porter,
+ WOCKY_LL_CONTACT (contact));
if (conn == NULL)
{
@@ -862,7 +863,8 @@ gibber_oob_file_transfer_offer (GibberFileTransfer *ft)
"contact", &contact,
NULL);
- wocky_meta_porter_open_async (porter, contact, NULL, porter_open_cb, ft);
+ wocky_meta_porter_open_async (porter, WOCKY_LL_CONTACT (contact),
+ NULL, porter_open_cb, ft);
g_object_unref (contact);
g_object_unref (porter);