aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/memorypool.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2007-12-20 04:23:00 +0000
committerChristian Grothoff <christian@grothoff.org>2007-12-20 04:23:00 +0000
commitc490e64780fd1c45592f5528bf755956f0f2eddb (patch)
treeaa34ac04246134cb8e32a2d81573c73079c0d764 /src/daemon/memorypool.h
parente787fde83a61e3f9290c589139b657c7c414201c (diff)
downloadlibmicrohttpd-c490e64780fd1c45592f5528bf755956f0f2eddb.tar.gz
libmicrohttpd-c490e64780fd1c45592f5528bf755956f0f2eddb.zip
new MHD with support for chunked encoding
Diffstat (limited to 'src/daemon/memorypool.h')
-rw-r--r--src/daemon/memorypool.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/daemon/memorypool.h b/src/daemon/memorypool.h
index 7f53cba5..1d8ffb32 100644
--- a/src/daemon/memorypool.h
+++ b/src/daemon/memorypool.h
@@ -81,4 +81,16 @@ void *MHD_pool_reallocate (struct MemoryPool *pool,
81 void *old, 81 void *old,
82 unsigned int old_size, unsigned int new_size); 82 unsigned int old_size, unsigned int new_size);
83 83
84/**
85 * Clear all entries from the memory pool except
86 * for "keep" of the given "size".
87 *
88 * @param keep pointer to the entry to keep (maybe NULL)
89 * @param size how many bytes need to be kept at this address
90 * @return addr new address of "keep" (if it had to change)
91 */
92void *MHD_pool_reset(struct MemoryPool * pool,
93 void * keep,
94 unsigned int size);
95
84#endif 96#endif