summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2008-02-07 02:30:00 +0000
committerDan Winship <danw@src.gnome.org>2008-02-07 02:30:00 +0000
commit7e598ef92e5b9efec01d901966008d95c8cd499f (patch)
treeb8f4894b9931ca1141dafd0c7d0bb46715fce38f /ChangeLog
parent72d508a9a07c63d74e35019185be81c3d604f52f (diff)
downloadlibsoup-7e598ef92e5b9efec01d901966008d95c8cd499f.tar.gz
New method that lets the application set a callback function to use to
* libsoup/soup-message.c (soup_message_set_chunk_allocator): New method that lets the application set a callback function to use to allocate SoupBuffers for reading into, so as to avoid needing extra copies. * libsoup/soup-message-body.c (soup_buffer_new_with_owner): new, to create a SoupBuffer pointing to memory owned by another object, with a GDestroyNotify to unref/free that object when the SoupBuffer is freed. (soup_buffer_get_owner): Returns the owner of a buffer created with soup_buffer_new_with_owner. (soup_buffer_free, etc): update SoupBuffer code for owned buffers. Suggested by Wouter Cloetens, #513810. * tests/simple-httpd.c (do_get): Use mmap() and soup_buffer_new_with_owner(), as a demo/test. svn path=/trunk/; revision=1075
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog20
1 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b42981a9..d562166d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,25 @@
2008-02-06 Dan Winship <danw@gnome.org>
+ * libsoup/soup-message.c (soup_message_set_chunk_allocator): New
+ method that lets the application set a callback function to use to
+ allocate SoupBuffers for reading into, so as to avoid needing
+ extra copies.
+
+ * libsoup/soup-message-body.c (soup_buffer_new_with_owner): new,
+ to create a SoupBuffer pointing to memory owned by another object,
+ with a GDestroyNotify to unref/free that object when the
+ SoupBuffer is freed.
+ (soup_buffer_get_owner): Returns the owner of a buffer created
+ with soup_buffer_new_with_owner.
+ (soup_buffer_free, etc): update SoupBuffer code for owned buffers.
+
+ Suggested by Wouter Cloetens, #513810.
+
+ * tests/simple-httpd.c (do_get): Use mmap() and
+ soup_buffer_new_with_owner(), as a demo/test.
+
+2008-02-06 Dan Winship <danw@gnome.org>
+
* libsoup/soup-date.c (soup_date_to_time_t): clamp the result to
the time_t range, and document that. Remove the #ifdef HAVE_TIMEGM
branch.