[gnome-online-accounts] ewsclient: Fix breakage because of libxml2 API breakage
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] ewsclient: Fix breakage because of libxml2 API breakage
- Date: Mon, 13 Aug 2012 23:33:30 +0000 (UTC)
commit 1afba9aa98436551db4c3589eed943f49a106293
Author: Stef Walter <stefw gnome org>
Date: Mon Aug 13 08:17:06 2012 +0200
ewsclient: Fix breakage because of libxml2 API breakage
* libxml2 introduced some API breakage recently.
* Fix the build so it works with both old and new versions
of libxml2.
https://bugzilla.gnome.org/show_bug.cgi?id=681720
src/goabackend/goaewsclient.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaewsclient.c b/src/goabackend/goaewsclient.c
index 6627514..30eb600 100644
--- a/src/goabackend/goaewsclient.c
+++ b/src/goabackend/goaewsclient.c
@@ -351,8 +351,13 @@ ews_client_post_restarted_cb (SoupMessage *msg, gpointer data)
soup_message_set_request(msg,
"text/xml; charset=utf-8",
SOUP_MEMORY_COPY,
+#ifdef LIBXML2_NEW_BUFFER
+ (gchar *) xmlOutputBufferGetContent(buf),
+ xmlOutputBufferGetSize(buf));
+#else
(gchar *) buf->buffer->content,
buf->buffer->use);
+#endif
}
static SoupMessage *
@@ -368,8 +373,13 @@ ews_client_create_msg_for_url (const gchar *url, xmlOutputBuffer *buf)
soup_message_set_request (msg,
"text/xml; charset=utf-8",
SOUP_MEMORY_COPY,
+#ifdef LIBXML2_NEW_BUFFER
+ (gchar *) xmlOutputBufferGetContent(buf),
+ xmlOutputBufferGetSize(buf));
+#else
(gchar *) buf->buffer->content,
buf->buffer->use);
+#endif
g_signal_connect (msg, "restarted", G_CALLBACK (ews_client_post_restarted_cb), buf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]