summaryrefslogtreecommitdiff
path: root/lib/gibber
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-05-03 17:13:38 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-05-03 17:14:52 +0100
commit026439608057f8c8ba8d1cc8bbcafb4acd172e58 (patch)
treec233a0c75d97f6e7da14498f64ed777c3663e502 /lib/gibber
parent48cab0984fee58b5f85f352da29d5094858f27c6 (diff)
muc-connection: use WockyXmppWriter
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'lib/gibber')
-rw-r--r--lib/gibber/gibber-muc-connection.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/gibber/gibber-muc-connection.c b/lib/gibber/gibber-muc-connection.c
index a215fc11..98d0d530 100644
--- a/lib/gibber/gibber-muc-connection.c
+++ b/lib/gibber/gibber-muc-connection.c
@@ -30,12 +30,12 @@
#include "gibber-sockets.h"
#include "gibber-namespaces.h"
-#include "gibber-xmpp-writer.h"
#include "gibber-multicast-transport.h"
#include "gibber-r-multicast-transport.h"
#include "gibber-r-multicast-causal-transport.h"
#include <wocky/wocky-xmpp-reader.h>
+#include <wocky/wocky-xmpp-writer.h>
#define ADDRESS_KEY "address"
#define PORT_KEY "port"
@@ -78,7 +78,7 @@ struct _GibberMucConnectionPrivate
gchar *port;
WockyXmppReader *reader;
- GibberXmppWriter *writer;
+ WockyXmppWriter *writer;
GHashTable *parameters;
@@ -112,7 +112,7 @@ gibber_muc_connection_init (GibberMucConnection *obj)
/* allocate any data required by the object here */
priv->reader = wocky_xmpp_reader_new_no_stream ();
- priv->writer = gibber_xmpp_writer_new_no_stream ();
+ priv->writer = wocky_xmpp_writer_new_no_stream ();
priv->streams_used = g_array_sized_new (FALSE, TRUE, sizeof (guint16), 1);
/* 0 is the "default" stream */
@@ -681,11 +681,8 @@ gibber_muc_connection_send (GibberMucConnection *connection,
const guint8 *data;
gsize length;
- if (!gibber_xmpp_writer_write_stanza (priv->writer, stanza,
- &data, &length, error))
- {
- return FALSE;
- }
+ wocky_xmpp_writer_write_stanza (priv->writer, stanza,
+ &data, &length);
return gibber_transport_send (GIBBER_TRANSPORT (priv->rmtransport),
data, length, error);