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.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 09983ab7..7aff40f5 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -180,7 +180,7 @@ enum MHD_Result
180#define _MHD_EXTERN extern 180#define _MHD_EXTERN extern
181#elif defined (_WIN32) && defined(MHD_W32DLL) 181#elif defined (_WIN32) && defined(MHD_W32DLL)
182/* Define MHD_W32DLL when using MHD as W32 .DLL to speed up linker a little */ 182/* Define MHD_W32DLL when using MHD as W32 .DLL to speed up linker a little */
183#define _MHD_EXTERN __declspec (dllimport) 183#define _MHD_EXTERN __declspec(dllimport)
184#else 184#else
185#define _MHD_EXTERN extern 185#define _MHD_EXTERN extern
186#endif 186#endif
@@ -262,10 +262,10 @@ typedef SOCKET MHD_socket;
262#ifndef _MHD_DEPR_FUNC 262#ifndef _MHD_DEPR_FUNC
263#if defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1400 263#if defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1400
264/* VS 2005 or later */ 264/* VS 2005 or later */
265#define _MHD_DEPR_FUNC(msg) __declspec (deprecated (msg)) 265#define _MHD_DEPR_FUNC(msg) __declspec(deprecated (msg))
266#elif defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1310 266#elif defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1310
267/* VS .NET 2003 deprecation do not support custom messages */ 267/* VS .NET 2003 deprecation do not support custom messages */
268#define _MHD_DEPR_FUNC(msg) __declspec (deprecated) 268#define _MHD_DEPR_FUNC(msg) __declspec(deprecated)
269#elif (__GNUC__ + 0 >= 5) || (defined (__clang__) && \ 269#elif (__GNUC__ + 0 >= 5) || (defined (__clang__) && \
270 (__clang_major__ + 0 > 2 || (__clang_major__ + 0 == 2 && __clang_minor__ >= \ 270 (__clang_major__ + 0 > 2 || (__clang_major__ + 0 == 2 && __clang_minor__ >= \
271 9))) /* FIXME: earlier versions not tested */ 271 9))) /* FIXME: earlier versions not tested */
@@ -3127,6 +3127,20 @@ MHD_create_response_from_fd (size_t size,
3127 3127
3128/** 3128/**
3129 * Create a response object. The response object can be extended with 3129 * Create a response object. The response object can be extended with
3130 * header information and then be used ONLY ONCE.
3131 *
3132 * @param fd file descriptor referring to a read-end of a pipe with the
3133 * data; will be closed when response is destroyed;
3134 * fd should be in 'blocking' mode
3135 * @return NULL on error (i.e. invalid arguments, out of memory)
3136 * @ingroup response
3137 */
3138_MHD_EXTERN struct MHD_Response *
3139MHD_create_response_from_pipe (int fd);
3140
3141
3142/**
3143 * Create a response object. The response object can be extended with
3130 * header information and then be used any number of times. 3144 * header information and then be used any number of times.
3131 * 3145 *
3132 * @param size size of the data portion of the response; 3146 * @param size size of the data portion of the response;