summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-12-13 15:58:28 +0100
committerDan Winship <danw@gnome.org>2012-12-17 16:09:50 -0500
commitb4f85bccc9ea4b28c4fcb86da6fe44bb48d9bb52 (patch)
tree66c18c47c7d9f35ec10e2cb5f291e1b5dd11d0c6 /tests
parent81df4008fe06b7ccb0ddee69d190608a13aa4020 (diff)
downloadlibsoup-b4f85bccc9ea4b28c4fcb86da6fe44bb48d9bb52.tar.gz
libsoup-b4f85bccc9ea4b28c4fcb86da6fe44bb48d9bb52.tar.bz2
libsoup-b4f85bccc9ea4b28c4fcb86da6fe44bb48d9bb52.zip
soup-message: deprecate soup_message_set_chunk_allocator()
This was added as a hacky way to avoid extra memcpy()s in certain use cases by reading data directly into a caller-provided buffer. However, SoupRequest now provides a vastly simpler way of doing this.
Diffstat (limited to 'tests')
-rw-r--r--tests/chunk-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/chunk-test.c b/tests/chunk-test.c
index cce7127f..ce929565 100644
--- a/tests/chunk-test.c
+++ b/tests/chunk-test.c
@@ -284,7 +284,9 @@ do_response_test (SoupSession *session, SoupURI *base_uri)
msg = soup_message_new_from_uri ("GET", base_uri);
soup_message_body_set_accumulate (msg->response_body, FALSE);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
soup_message_set_chunk_allocator (msg, chunk_allocator, &gtd, NULL);
+ G_GNUC_END_IGNORE_DEPRECATIONS;
g_signal_connect (msg, "got_chunk",
G_CALLBACK (got_chunk), &gtd);
soup_session_send_message (session, msg);