aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.h')
-rw-r--r--src/microhttpd/connection.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/microhttpd/connection.h b/src/microhttpd/connection.h
index 9f1a0ffb..693e26fc 100644
--- a/src/microhttpd/connection.h
+++ b/src/microhttpd/connection.h
@@ -190,4 +190,18 @@ MHD_connection_epoll_update_ (struct MHD_Connection *connection);
190void 190void
191MHD_update_last_activity_ (struct MHD_Connection *connection); 191MHD_update_last_activity_ (struct MHD_Connection *connection);
192 192
193
194/**
195 * Allocate memory from connection's memory pool.
196 * If memory pool doesn't have enough free memory but read or write buffer
197 * have some unused memory, the size of the buffer will be reduced as needed.
198 * @param connection the connection to use
199 * @param size the size of allocated memory area
200 * @return pointer to allocated memory region in the pool or
201 * NULL if no memory is available
202 */
203void *
204MHD_connection_alloc_memory_ (struct MHD_Connection *connection,
205 size_t size);
206
193#endif 207#endif