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.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index ed60105c..bc617467 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -59,9 +59,9 @@
59 * thread-safe (with the exception of 'MHD_set_connection_value', 59 * thread-safe (with the exception of 'MHD_set_connection_value',
60 * which must only be used in a particular context).<p> 60 * which must only be used in a particular context).<p>
61 * 61 *
62 * NEW: Before including "microhttpd.h" you should add the 62 * NEW: Before including "microhttpd.h" you should add the necessary
63 * necessary includes to define the "size_t", "fd_set", "socklen_t" and 63 * includes to define the "uint64_t", "size_t", "fd_set", "socklen_t"
64 * "struct sockaddr" data types (which headers are needed may 64 * and "struct sockaddr" data types (which headers are needed may
65 * depend on your platform; for possible suggestions consult 65 * depend on your platform; for possible suggestions consult
66 * "platform.h" in the MHD distribution). 66 * "platform.h" in the MHD distribution).
67 * 67 *
@@ -297,8 +297,8 @@ enum MHD_OPTION
297 MHD_OPTION_END = 0, 297 MHD_OPTION_END = 0,
298 298
299 /** 299 /**
300 * Maximum memory size per connection (followed by an 300 * Maximum memory size per connection (followed by a
301 * unsigned int). 301 * size_t).
302 */ 302 */
303 MHD_OPTION_CONNECTION_MEMORY_LIMIT = 1, 303 MHD_OPTION_CONNECTION_MEMORY_LIMIT = 1,
304 304
@@ -663,7 +663,7 @@ typedef int
663 const char *method, 663 const char *method,
664 const char *version, 664 const char *version,
665 const char *upload_data, 665 const char *upload_data,
666 unsigned int *upload_data_size, 666 size_t *upload_data_size,
667 void **con_cls); 667 void **con_cls);
668 668
669/** 669/**
@@ -731,7 +731,10 @@ typedef int
731 * requests using the same TCP connection). 731 * requests using the same TCP connection).
732 */ 732 */
733typedef int 733typedef int
734 (*MHD_ContentReaderCallback) (void *cls, size_t pos, char *buf, int max); 734 (*MHD_ContentReaderCallback) (void *cls,
735 uint64_t pos,
736 char *buf,
737 int max);
735 738
736/** 739/**
737 * This method is called by libmicrohttpd if we 740 * This method is called by libmicrohttpd if we
@@ -767,7 +770,7 @@ typedef int
767 const char *filename, 770 const char *filename,
768 const char *content_type, 771 const char *content_type,
769 const char *transfer_encoding, 772 const char *transfer_encoding,
770 const char *data, size_t off, size_t size); 773 const char *data, uint64_t off, size_t size);
771 774
772/* **************** Daemon handling functions ***************** */ 775/* **************** Daemon handling functions ***************** */
773 776
@@ -967,9 +970,8 @@ MHD_queue_response (struct MHD_Connection *connection,
967 * @param crfc callback to call to free crc_cls resources 970 * @param crfc callback to call to free crc_cls resources
968 * @return NULL on error (i.e. invalid arguments, out of memory) 971 * @return NULL on error (i.e. invalid arguments, out of memory)
969 */ 972 */
970struct MHD_Response *MHD_create_response_from_callback (size_t size, 973struct MHD_Response *MHD_create_response_from_callback (uint64_t size,
971 unsigned int 974 size_t block_size,
972 block_size,
973 MHD_ContentReaderCallback 975 MHD_ContentReaderCallback
974 crc, void *crc_cls, 976 crc, void *crc_cls,
975 MHD_ContentReaderFreeCallback 977 MHD_ContentReaderFreeCallback
@@ -1079,7 +1081,7 @@ const char *MHD_get_response_header (struct MHD_Response *response,
1079 */ 1081 */
1080struct MHD_PostProcessor *MHD_create_post_processor (struct MHD_Connection 1082struct MHD_PostProcessor *MHD_create_post_processor (struct MHD_Connection
1081 *connection, 1083 *connection,
1082 unsigned int buffer_size, 1084 size_t buffer_size,
1083 MHD_PostDataIterator 1085 MHD_PostDataIterator
1084 iter, void *cls); 1086 iter, void *cls);
1085 1087
@@ -1099,7 +1101,7 @@ struct MHD_PostProcessor *MHD_create_post_processor (struct MHD_Connection
1099 */ 1101 */
1100int 1102int
1101MHD_post_process (struct MHD_PostProcessor *pp, 1103MHD_post_process (struct MHD_PostProcessor *pp,
1102 const char *post_data, unsigned int post_data_len); 1104 const char *post_data, size_t post_data_len);
1103 1105
1104/** 1106/**
1105 * Release PostProcessor resources. 1107 * Release PostProcessor resources.