diff options
Diffstat (limited to 'meta-gnome/recipes-gnome/eds/evolution-data-server/0005-soup-adapt-to-new-libxml2-API-from-2.9.0.patch')
-rw-r--r-- | meta-gnome/recipes-gnome/eds/evolution-data-server/0005-soup-adapt-to-new-libxml2-API-from-2.9.0.patch | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/eds/evolution-data-server/0005-soup-adapt-to-new-libxml2-API-from-2.9.0.patch b/meta-gnome/recipes-gnome/eds/evolution-data-server/0005-soup-adapt-to-new-libxml2-API-from-2.9.0.patch new file mode 100644 index 000000000..addf2ee8d --- /dev/null +++ b/meta-gnome/recipes-gnome/eds/evolution-data-server/0005-soup-adapt-to-new-libxml2-API-from-2.9.0.patch | |||
@@ -0,0 +1,77 @@ | |||
1 | From ac95e89749a01618f98b554a98e78d7c988bfc10 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Tue, 27 Nov 2012 08:46:51 +0100 | ||
4 | Subject: [PATCH 5/5] soup: adapt to new libxml2 API from 2.9.0 | ||
5 | |||
6 | * for more info see | ||
7 | https://mail.gnome.org/archives/xml/2012-August/msg00005.html | ||
8 | |||
9 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
10 | --- | ||
11 | calendar/backends/caldav/e-cal-backend-caldav.c | 21 +++++++++++++++++++++ | ||
12 | 1 file changed, 21 insertions(+) | ||
13 | |||
14 | diff --git a/calendar/backends/caldav/e-cal-backend-caldav.c b/calendar/backends/caldav/e-cal-backend-caldav.c | ||
15 | index 12f8f22..5555a3e 100644 | ||
16 | --- a/calendar/backends/caldav/e-cal-backend-caldav.c | ||
17 | +++ b/calendar/backends/caldav/e-cal-backend-caldav.c | ||
18 | @@ -1172,8 +1172,13 @@ check_calendar_changed_on_server (ECalBackendCalDAV *cbdav) | ||
19 | soup_message_set_request (message, | ||
20 | "application/xml", | ||
21 | SOUP_MEMORY_COPY, | ||
22 | +#ifdef LIBXML2_NEW_BUFFER | ||
23 | + (gchar *) xmlOutputBufferGetContent(buf), | ||
24 | + xmlOutputBufferGetSize(buf)); | ||
25 | +#else | ||
26 | (gchar *) buf->buffer->content, | ||
27 | buf->buffer->use); | ||
28 | +#endif | ||
29 | |||
30 | /* Send the request now */ | ||
31 | send_and_handle_redirection (priv->session, message, NULL); | ||
32 | @@ -1321,8 +1326,13 @@ caldav_server_list_objects (ECalBackendCalDAV *cbdav, | ||
33 | soup_message_set_request (message, | ||
34 | "application/xml", | ||
35 | SOUP_MEMORY_COPY, | ||
36 | +#ifdef LIBXML2_NEW_BUFFER | ||
37 | + (gchar *) xmlOutputBufferGetContent(buf), | ||
38 | + xmlOutputBufferGetSize(buf)); | ||
39 | +#else | ||
40 | (gchar *) buf->buffer->content, | ||
41 | buf->buffer->use); | ||
42 | +#endif | ||
43 | |||
44 | /* Send the request now */ | ||
45 | send_and_handle_redirection (priv->session, message, NULL); | ||
46 | @@ -1715,8 +1725,14 @@ caldav_receive_schedule_outbox_url (ECalBackendCalDAV *cbdav) | ||
47 | soup_message_set_request (message, | ||
48 | "application/xml", | ||
49 | SOUP_MEMORY_COPY, | ||
50 | +#ifdef LIBXML2_NEW_BUFFER | ||
51 | + (gchar *) xmlOutputBufferGetContent(buf), | ||
52 | + xmlOutputBufferGetSize(buf)); | ||
53 | +#else | ||
54 | (gchar *) buf->buffer->content, | ||
55 | buf->buffer->use); | ||
56 | +#endif | ||
57 | + | ||
58 | |||
59 | /* Send the request now */ | ||
60 | send_and_handle_redirection (priv->session, message, NULL); | ||
61 | @@ -1765,8 +1781,13 @@ caldav_receive_schedule_outbox_url (ECalBackendCalDAV *cbdav) | ||
62 | soup_message_set_request (message, | ||
63 | "application/xml", | ||
64 | SOUP_MEMORY_COPY, | ||
65 | +#ifdef LIBXML2_NEW_BUFFER | ||
66 | + (gchar *) xmlOutputBufferGetContent(buf), | ||
67 | + xmlOutputBufferGetSize(buf)); | ||
68 | +#else | ||
69 | (gchar *) buf->buffer->content, | ||
70 | buf->buffer->use); | ||
71 | +#endif | ||
72 | |||
73 | /* Send the request now */ | ||
74 | send_and_handle_redirection (priv->session, message, NULL); | ||
75 | -- | ||
76 | 1.8.3.2 | ||
77 | |||