aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 44156aab..4c9937bf 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -130,7 +130,7 @@ typedef intptr_t ssize_t;
130 * they are parsed as decimal numbers. 130 * they are parsed as decimal numbers.
131 * Example: 0x01093001 = 1.9.30-1. 131 * Example: 0x01093001 = 1.9.30-1.
132 */ 132 */
133#define MHD_VERSION 0x00097301 133#define MHD_VERSION 0x00097302
134 134
135/** 135/**
136 * Operational results from MHD calls. 136 * Operational results from MHD calls.
@@ -3242,6 +3242,28 @@ MHD_create_response_from_buffer_with_free_callback (size_t size,
3242 3242
3243 3243
3244/** 3244/**
3245 * Create a response object.
3246 * The response object can be extended with header information and then be
3247 * used any number of times.
3248 *
3249 * @param size size of the data portion of the response
3250 * @param buffer size bytes containing the response's data portion
3251 * @param crfc function to call to cleanup, if set to NULL then callback
3252 * is not called
3253 * @param crfc_cls an argument for @a crfc
3254 * @return NULL on error (i.e. invalid arguments, out of memory)
3255 * @note Available since #MHD_VERSION 0x00097302
3256 * @ingroup response
3257 */
3258_MHD_EXTERN struct MHD_Response *
3259MHD_create_response_from_buffer_with_free_callback_cls (size_t size,
3260 void *buffer,
3261 MHD_ContentReaderFreeCallback
3262 crfc,
3263 void *crfc_cls);
3264
3265
3266/**
3245 * Create a response object. The response object can be extended with 3267 * Create a response object. The response object can be extended with
3246 * header information and then be used any number of times. 3268 * header information and then be used any number of times.
3247 * 3269 *