aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-18 09:49:30 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-18 11:18:03 +0300
commit1c116801200b0cafac4f16f7f9ccecf69a23c1aa (patch)
tree70cc66b2bd8be41598ca9d9e4bd771b57dd6e797 /src/microhttpd
parent4ff1024763a306200de3fd1e5581377aca9047e1 (diff)
downloadlibmicrohttpd-1c116801200b0cafac4f16f7f9ccecf69a23c1aa.tar.gz
libmicrohttpd-1c116801200b0cafac4f16f7f9ccecf69a23c1aa.zip
Added _MHD_EXTERN to the all public functions definitions
Previously it was inconsistent, some function definitions used _MHD_EXTERN, while other definitions was used without _MHD_EXTERN.
Diffstat (limited to 'src/microhttpd')
-rw-r--r--src/microhttpd/basicauth.c4
-rw-r--r--src/microhttpd/connection.c16
-rw-r--r--src/microhttpd/daemon.c30
-rw-r--r--src/microhttpd/digestauth.c6
-rw-r--r--src/microhttpd/internal.c2
-rw-r--r--src/microhttpd/mhd_panic.c2
-rw-r--r--src/microhttpd/postprocessor.c6
-rw-r--r--src/microhttpd/reason_phrase.c4
-rw-r--r--src/microhttpd/response.c26
9 files changed, 48 insertions, 48 deletions
diff --git a/src/microhttpd/basicauth.c b/src/microhttpd/basicauth.c
index b6d88ba3..f3c5f5b9 100644
--- a/src/microhttpd/basicauth.c
+++ b/src/microhttpd/basicauth.c
@@ -43,7 +43,7 @@
43 * to the username if found 43 * to the username if found
44 * @ingroup authentication 44 * @ingroup authentication
45 */ 45 */
46char * 46_MHD_EXTERN char *
47MHD_basic_auth_get_username_password (struct MHD_Connection *connection, 47MHD_basic_auth_get_username_password (struct MHD_Connection *connection,
48 char **password) 48 char **password)
49{ 49{
@@ -120,7 +120,7 @@ MHD_basic_auth_get_username_password (struct MHD_Connection *connection,
120 * @return #MHD_YES on success, #MHD_NO otherwise 120 * @return #MHD_YES on success, #MHD_NO otherwise
121 * @ingroup authentication 121 * @ingroup authentication
122 */ 122 */
123enum MHD_Result 123_MHD_EXTERN enum MHD_Result
124MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, 124MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection,
125 const char *realm, 125 const char *realm,
126 struct MHD_Response *response) 126 struct MHD_Response *response)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 36e74900..792337a4 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -380,7 +380,7 @@ recv_param_adapter (struct MHD_Connection *connection,
380 * -1 if connection is NULL. 380 * -1 if connection is NULL.
381 * @ingroup request 381 * @ingroup request
382 */ 382 */
383int 383_MHD_EXTERN int
384MHD_get_connection_values (struct MHD_Connection *connection, 384MHD_get_connection_values (struct MHD_Connection *connection,
385 enum MHD_ValueKind kind, 385 enum MHD_ValueKind kind,
386 MHD_KeyValueIterator iterator, 386 MHD_KeyValueIterator iterator,
@@ -419,7 +419,7 @@ MHD_get_connection_values (struct MHD_Connection *connection,
419 * -1 if connection is NULL. 419 * -1 if connection is NULL.
420 * @ingroup request 420 * @ingroup request
421 */ 421 */
422int 422_MHD_EXTERN int
423MHD_get_connection_values_n (struct MHD_Connection *connection, 423MHD_get_connection_values_n (struct MHD_Connection *connection,
424 enum MHD_ValueKind kind, 424 enum MHD_ValueKind kind,
425 MHD_KeyValueIteratorN iterator, 425 MHD_KeyValueIteratorN iterator,
@@ -532,7 +532,7 @@ MHD_set_connection_value_n_nocheck_ (struct MHD_Connection *connection,
532 * #MHD_YES on success 532 * #MHD_YES on success
533 * @ingroup request 533 * @ingroup request
534 */ 534 */
535enum MHD_Result 535_MHD_EXTERN enum MHD_Result
536MHD_set_connection_value_n (struct MHD_Connection *connection, 536MHD_set_connection_value_n (struct MHD_Connection *connection,
537 enum MHD_ValueKind kind, 537 enum MHD_ValueKind kind,
538 const char *key, 538 const char *key,
@@ -579,7 +579,7 @@ MHD_set_connection_value_n (struct MHD_Connection *connection,
579 * #MHD_YES on success 579 * #MHD_YES on success
580 * @ingroup request 580 * @ingroup request
581 */ 581 */
582enum MHD_Result 582_MHD_EXTERN enum MHD_Result
583MHD_set_connection_value (struct MHD_Connection *connection, 583MHD_set_connection_value (struct MHD_Connection *connection,
584 enum MHD_ValueKind kind, 584 enum MHD_ValueKind kind,
585 const char *key, 585 const char *key,
@@ -608,7 +608,7 @@ MHD_set_connection_value (struct MHD_Connection *connection,
608 * @return NULL if no such item was found 608 * @return NULL if no such item was found
609 * @ingroup request 609 * @ingroup request
610 */ 610 */
611const char * 611_MHD_EXTERN const char *
612MHD_lookup_connection_value (struct MHD_Connection *connection, 612MHD_lookup_connection_value (struct MHD_Connection *connection,
613 enum MHD_ValueKind kind, 613 enum MHD_ValueKind kind,
614 const char *key) 614 const char *key)
@@ -5004,7 +5004,7 @@ MHD_set_http_callbacks_ (struct MHD_Connection *connection)
5004 * (or if the @a info_type is unknown) 5004 * (or if the @a info_type is unknown)
5005 * @ingroup specialized 5005 * @ingroup specialized
5006 */ 5006 */
5007const union MHD_ConnectionInfo * 5007_MHD_EXTERN const union MHD_ConnectionInfo *
5008MHD_get_connection_info (struct MHD_Connection *connection, 5008MHD_get_connection_info (struct MHD_Connection *connection,
5009 enum MHD_ConnectionInfoType info_type, 5009 enum MHD_ConnectionInfoType info_type,
5010 ...) 5010 ...)
@@ -5068,7 +5068,7 @@ MHD_get_connection_info (struct MHD_Connection *connection,
5068 * @return #MHD_YES on success, #MHD_NO if setting the option failed 5068 * @return #MHD_YES on success, #MHD_NO if setting the option failed
5069 * @ingroup specialized 5069 * @ingroup specialized
5070 */ 5070 */
5071enum MHD_Result 5071_MHD_EXTERN enum MHD_Result
5072MHD_set_connection_option (struct MHD_Connection *connection, 5072MHD_set_connection_option (struct MHD_Connection *connection,
5073 enum MHD_CONNECTION_OPTION option, 5073 enum MHD_CONNECTION_OPTION option,
5074 ...) 5074 ...)
@@ -5175,7 +5175,7 @@ MHD_set_connection_option (struct MHD_Connection *connection,
5175 * @ingroup response 5175 * @ingroup response
5176 * @sa #MHD_AccessHandlerCallback 5176 * @sa #MHD_AccessHandlerCallback
5177 */ 5177 */
5178enum MHD_Result 5178_MHD_EXTERN enum MHD_Result
5179MHD_queue_response (struct MHD_Connection *connection, 5179MHD_queue_response (struct MHD_Connection *connection,
5180 unsigned int status_code, 5180 unsigned int status_code,
5181 struct MHD_Response *response) 5181 struct MHD_Response *response)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 1cca1b30..fa4715e9 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -691,7 +691,7 @@ MHD_TLS_init (struct MHD_Daemon *daemon)
691 * fit fd_set. 691 * fit fd_set.
692 * @ingroup event 692 * @ingroup event
693 */ 693 */
694enum MHD_Result 694_MHD_EXTERN enum MHD_Result
695MHD_get_fdset (struct MHD_Daemon *daemon, 695MHD_get_fdset (struct MHD_Daemon *daemon,
696 fd_set *read_fd_set, 696 fd_set *read_fd_set,
697 fd_set *write_fd_set, 697 fd_set *write_fd_set,
@@ -1099,7 +1099,7 @@ internal_get_fdset2 (struct MHD_Daemon *daemon,
1099 * fit fd_set. 1099 * fit fd_set.
1100 * @ingroup event 1100 * @ingroup event
1101 */ 1101 */
1102enum MHD_Result 1102_MHD_EXTERN enum MHD_Result
1103MHD_get_fdset2 (struct MHD_Daemon *daemon, 1103MHD_get_fdset2 (struct MHD_Daemon *daemon,
1104 fd_set *read_fd_set, 1104 fd_set *read_fd_set,
1105 fd_set *write_fd_set, 1105 fd_set *write_fd_set,
@@ -3171,7 +3171,7 @@ internal_suspend_connection_ (struct MHD_Connection *connection)
3171 * 3171 *
3172 * @sa #MHD_AccessHandlerCallback 3172 * @sa #MHD_AccessHandlerCallback
3173 */ 3173 */
3174void 3174_MHD_EXTERN void
3175MHD_suspend_connection (struct MHD_Connection *connection) 3175MHD_suspend_connection (struct MHD_Connection *connection)
3176{ 3176{
3177 struct MHD_Daemon *const daemon = connection->daemon; 3177 struct MHD_Daemon *const daemon = connection->daemon;
@@ -3214,7 +3214,7 @@ MHD_suspend_connection (struct MHD_Connection *connection)
3214 * 3214 *
3215 * @param connection the connection to resume 3215 * @param connection the connection to resume
3216 */ 3216 */
3217void 3217_MHD_EXTERN void
3218MHD_resume_connection (struct MHD_Connection *connection) 3218MHD_resume_connection (struct MHD_Connection *connection)
3219{ 3219{
3220 struct MHD_Daemon *daemon = connection->daemon; 3220 struct MHD_Daemon *daemon = connection->daemon;
@@ -3411,7 +3411,7 @@ resume_suspended_connections (struct MHD_Daemon *daemon)
3411 * set to indicate further details about the error. 3411 * set to indicate further details about the error.
3412 * @ingroup specialized 3412 * @ingroup specialized
3413 */ 3413 */
3414enum MHD_Result 3414_MHD_EXTERN enum MHD_Result
3415MHD_add_connection (struct MHD_Daemon *daemon, 3415MHD_add_connection (struct MHD_Daemon *daemon,
3416 MHD_socket client_socket, 3416 MHD_socket client_socket,
3417 const struct sockaddr *addr, 3417 const struct sockaddr *addr,
@@ -3893,7 +3893,7 @@ MHD_cleanup_connections (struct MHD_Daemon *daemon)
3893 * not used and no data processing is pending. 3893 * not used and no data processing is pending.
3894 * @ingroup event 3894 * @ingroup event
3895 */ 3895 */
3896enum MHD_Result 3896_MHD_EXTERN enum MHD_Result
3897MHD_get_timeout (struct MHD_Daemon *daemon, 3897MHD_get_timeout (struct MHD_Daemon *daemon,
3898 MHD_UNSIGNED_LONG_LONG *timeout) 3898 MHD_UNSIGNED_LONG_LONG *timeout)
3899{ 3899{
@@ -4125,7 +4125,7 @@ internal_run_from_select (struct MHD_Daemon *daemon,
4125 * @return #MHD_NO on serious errors, #MHD_YES on success 4125 * @return #MHD_NO on serious errors, #MHD_YES on success
4126 * @ingroup event 4126 * @ingroup event
4127 */ 4127 */
4128enum MHD_Result 4128_MHD_EXTERN enum MHD_Result
4129MHD_run_from_select (struct MHD_Daemon *daemon, 4129MHD_run_from_select (struct MHD_Daemon *daemon,
4130 const fd_set *read_fd_set, 4130 const fd_set *read_fd_set,
4131 const fd_set *write_fd_set, 4131 const fd_set *write_fd_set,
@@ -5205,7 +5205,7 @@ MHD_epoll (struct MHD_Daemon *daemon,
5205 * options for this call. 5205 * options for this call.
5206 * @ingroup event 5206 * @ingroup event
5207 */ 5207 */
5208enum MHD_Result 5208_MHD_EXTERN enum MHD_Result
5209MHD_run (struct MHD_Daemon *daemon) 5209MHD_run (struct MHD_Daemon *daemon)
5210{ 5210{
5211 if ( (daemon->shutdown) || 5211 if ( (daemon->shutdown) ||
@@ -5449,7 +5449,7 @@ unescape_wrapper (void *cls,
5449 * @return NULL on error, handle to daemon on success 5449 * @return NULL on error, handle to daemon on success
5450 * @ingroup event 5450 * @ingroup event
5451 */ 5451 */
5452struct MHD_Daemon * 5452_MHD_EXTERN struct MHD_Daemon *
5453MHD_start_daemon (unsigned int flags, 5453MHD_start_daemon (unsigned int flags,
5454 uint16_t port, 5454 uint16_t port,
5455 MHD_AcceptPolicyCallback apc, 5455 MHD_AcceptPolicyCallback apc,
@@ -5494,7 +5494,7 @@ MHD_start_daemon (unsigned int flags,
5494 * the daemon was already not listening anymore 5494 * the daemon was already not listening anymore
5495 * @ingroup specialized 5495 * @ingroup specialized
5496 */ 5496 */
5497MHD_socket 5497_MHD_EXTERN MHD_socket
5498MHD_quiesce_daemon (struct MHD_Daemon *daemon) 5498MHD_quiesce_daemon (struct MHD_Daemon *daemon)
5499{ 5499{
5500#if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS) 5500#if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS)
@@ -6382,7 +6382,7 @@ setup_epoll_to_listen (struct MHD_Daemon *daemon)
6382 * @return NULL on error, handle to daemon on success 6382 * @return NULL on error, handle to daemon on success
6383 * @ingroup event 6383 * @ingroup event
6384 */ 6384 */
6385struct MHD_Daemon * 6385_MHD_EXTERN struct MHD_Daemon *
6386MHD_start_daemon_va (unsigned int flags, 6386MHD_start_daemon_va (unsigned int flags,
6387 uint16_t port, 6387 uint16_t port,
6388 MHD_AcceptPolicyCallback apc, 6388 MHD_AcceptPolicyCallback apc,
@@ -7651,7 +7651,7 @@ close_all_connections (struct MHD_Daemon *daemon)
7651 * @param daemon daemon to stop 7651 * @param daemon daemon to stop
7652 * @ingroup event 7652 * @ingroup event
7653 */ 7653 */
7654void 7654_MHD_EXTERN void
7655MHD_stop_daemon (struct MHD_Daemon *daemon) 7655MHD_stop_daemon (struct MHD_Daemon *daemon)
7656{ 7656{
7657 MHD_socket fd; 7657 MHD_socket fd;
@@ -7833,7 +7833,7 @@ MHD_stop_daemon (struct MHD_Daemon *daemon)
7833 * (or if the @a info_type is unknown) 7833 * (or if the @a info_type is unknown)
7834 * @ingroup specialized 7834 * @ingroup specialized
7835 */ 7835 */
7836const union MHD_DaemonInfo * 7836_MHD_EXTERN const union MHD_DaemonInfo *
7837MHD_get_daemon_info (struct MHD_Daemon *daemon, 7837MHD_get_daemon_info (struct MHD_Daemon *daemon,
7838 enum MHD_DaemonInfoType info_type, 7838 enum MHD_DaemonInfoType info_type,
7839 ...) 7839 ...)
@@ -7889,7 +7889,7 @@ MHD_get_daemon_info (struct MHD_Daemon *daemon,
7889 * @return static version string, e.g. "0.9.9" 7889 * @return static version string, e.g. "0.9.9"
7890 * @ingroup specialized 7890 * @ingroup specialized
7891 */ 7891 */
7892const char * 7892_MHD_EXTERN const char *
7893MHD_get_version (void) 7893MHD_get_version (void)
7894{ 7894{
7895#ifdef PACKAGE_VERSION 7895#ifdef PACKAGE_VERSION
@@ -7923,7 +7923,7 @@ MHD_get_version (void)
7923 * feature is not supported or feature is unknown. 7923 * feature is not supported or feature is unknown.
7924 * @ingroup specialized 7924 * @ingroup specialized
7925 */ 7925 */
7926enum MHD_Result 7926_MHD_EXTERN enum MHD_Result
7927MHD_is_feature_supported (enum MHD_FEATURE feature) 7927MHD_is_feature_supported (enum MHD_FEATURE feature)
7928{ 7928{
7929 switch (feature) 7929 switch (feature)
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 8526ae40..8b9abd18 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -614,7 +614,7 @@ check_nonce_nc (struct MHD_Connection *connection,
614 * @warning Returned value must be freed by #MHD_free(). 614 * @warning Returned value must be freed by #MHD_free().
615 * @ingroup authentication 615 * @ingroup authentication
616 */ 616 */
617char * 617_MHD_EXTERN char *
618MHD_digest_auth_get_username (struct MHD_Connection *connection) 618MHD_digest_auth_get_username (struct MHD_Connection *connection)
619{ 619{
620 char user[MAX_USERNAME_LENGTH]; 620 char user[MAX_USERNAME_LENGTH];
@@ -1342,7 +1342,7 @@ MHD_digest_auth_check_digest (struct MHD_Connection *connection,
1342 * @note Available since #MHD_VERSION 0x00096200 1342 * @note Available since #MHD_VERSION 0x00096200
1343 * @ingroup authentication 1343 * @ingroup authentication
1344 */ 1344 */
1345enum MHD_Result 1345_MHD_EXTERN enum MHD_Result
1346MHD_queue_auth_fail_response2 (struct MHD_Connection *connection, 1346MHD_queue_auth_fail_response2 (struct MHD_Connection *connection,
1347 const char *realm, 1347 const char *realm,
1348 const char *opaque, 1348 const char *opaque,
@@ -1470,7 +1470,7 @@ MHD_queue_auth_fail_response2 (struct MHD_Connection *connection,
1470 * @ingroup authentication 1470 * @ingroup authentication
1471 * @deprecated use MHD_queue_auth_fail_response2() 1471 * @deprecated use MHD_queue_auth_fail_response2()
1472 */ 1472 */
1473enum MHD_Result 1473_MHD_EXTERN enum MHD_Result
1474MHD_queue_auth_fail_response (struct MHD_Connection *connection, 1474MHD_queue_auth_fail_response (struct MHD_Connection *connection,
1475 const char *realm, 1475 const char *realm,
1476 const char *opaque, 1476 const char *opaque,
diff --git a/src/microhttpd/internal.c b/src/microhttpd/internal.c
index 055deb32..5453329c 100644
--- a/src/microhttpd/internal.c
+++ b/src/microhttpd/internal.c
@@ -142,7 +142,7 @@ MHD_unescape_plus (char *arg)
142 * @return length of the resulting val (`strlen(val)` may be 142 * @return length of the resulting val (`strlen(val)` may be
143 * shorter afterwards due to elimination of escape sequences) 143 * shorter afterwards due to elimination of escape sequences)
144 */ 144 */
145size_t 145_MHD_EXTERN size_t
146MHD_http_unescape (char *val) 146MHD_http_unescape (char *val)
147{ 147{
148 char *rpos = val; 148 char *rpos = val;
diff --git a/src/microhttpd/mhd_panic.c b/src/microhttpd/mhd_panic.c
index 1efba20d..ae2db248 100644
--- a/src/microhttpd/mhd_panic.c
+++ b/src/microhttpd/mhd_panic.c
@@ -88,7 +88,7 @@ mhd_panic_std (void *cls,
88 * @param cls passed to @a cb 88 * @param cls passed to @a cb
89 * @ingroup logging 89 * @ingroup logging
90 */ 90 */
91void 91_MHD_EXTERN void
92MHD_set_panic_func (MHD_PanicCallback cb, 92MHD_set_panic_func (MHD_PanicCallback cb,
93 void *cls) 93 void *cls)
94{ 94{
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index 0d6a00ab..d32ecc22 100644
--- a/src/microhttpd/postprocessor.c
+++ b/src/microhttpd/postprocessor.c
@@ -252,7 +252,7 @@ struct MHD_PostProcessor
252}; 252};
253 253
254 254
255struct MHD_PostProcessor * 255_MHD_EXTERN struct MHD_PostProcessor *
256MHD_create_post_processor (struct MHD_Connection *connection, 256MHD_create_post_processor (struct MHD_Connection *connection,
257 size_t buffer_size, 257 size_t buffer_size,
258 MHD_PostDataIterator iter, 258 MHD_PostDataIterator iter,
@@ -1455,7 +1455,7 @@ END:
1455} 1455}
1456 1456
1457 1457
1458enum MHD_Result 1458_MHD_EXTERN enum MHD_Result
1459MHD_post_process (struct MHD_PostProcessor *pp, 1459MHD_post_process (struct MHD_PostProcessor *pp,
1460 const char *post_data, 1460 const char *post_data,
1461 size_t post_data_len) 1461 size_t post_data_len)
@@ -1483,7 +1483,7 @@ MHD_post_process (struct MHD_PostProcessor *pp,
1483} 1483}
1484 1484
1485 1485
1486enum MHD_Result 1486_MHD_EXTERN enum MHD_Result
1487MHD_destroy_post_processor (struct MHD_PostProcessor *pp) 1487MHD_destroy_post_processor (struct MHD_PostProcessor *pp)
1488{ 1488{
1489 enum MHD_Result ret; 1489 enum MHD_Result ret;
diff --git a/src/microhttpd/reason_phrase.c b/src/microhttpd/reason_phrase.c
index 9a07b2ad..5ccc44b4 100644
--- a/src/microhttpd/reason_phrase.c
+++ b/src/microhttpd/reason_phrase.c
@@ -174,7 +174,7 @@ static const struct MHD_Reason_Block reasons[] = {
174}; 174};
175 175
176 176
177const char * 177_MHD_EXTERN const char *
178MHD_get_reason_phrase_for (unsigned int code) 178MHD_get_reason_phrase_for (unsigned int code)
179{ 179{
180 if ( (code >= 100) && 180 if ( (code >= 100) &&
@@ -185,7 +185,7 @@ MHD_get_reason_phrase_for (unsigned int code)
185} 185}
186 186
187 187
188size_t 188_MHD_EXTERN size_t
189MHD_get_reason_phrase_len_for (unsigned int code) 189MHD_get_reason_phrase_len_for (unsigned int code)
190{ 190{
191 if ( (code >= 100) && 191 if ( (code >= 100) &&
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index ab04061c..05131fd5 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -489,7 +489,7 @@ del_response_header_connection (struct MHD_Response *response,
489 * or out of memory 489 * or out of memory
490 * @ingroup response 490 * @ingroup response
491 */ 491 */
492enum MHD_Result 492_MHD_EXTERN enum MHD_Result
493MHD_add_response_header (struct MHD_Response *response, 493MHD_add_response_header (struct MHD_Response *response,
494 const char *header, 494 const char *header,
495 const char *content) 495 const char *content)
@@ -584,7 +584,7 @@ MHD_add_response_header (struct MHD_Response *response,
584 * @return #MHD_NO on error (i.e. invalid footer or content format). 584 * @return #MHD_NO on error (i.e. invalid footer or content format).
585 * @ingroup response 585 * @ingroup response
586 */ 586 */
587enum MHD_Result 587_MHD_EXTERN enum MHD_Result
588MHD_add_response_footer (struct MHD_Response *response, 588MHD_add_response_footer (struct MHD_Response *response,
589 const char *footer, 589 const char *footer,
590 const char *content) 590 const char *content)
@@ -610,7 +610,7 @@ MHD_add_response_footer (struct MHD_Response *response,
610 * @return #MHD_NO on error (no such header known) 610 * @return #MHD_NO on error (no such header known)
611 * @ingroup response 611 * @ingroup response
612 */ 612 */
613enum MHD_Result 613_MHD_EXTERN enum MHD_Result
614MHD_del_response_header (struct MHD_Response *response, 614MHD_del_response_header (struct MHD_Response *response,
615 const char *header, 615 const char *header,
616 const char *content) 616 const char *content)
@@ -692,7 +692,7 @@ MHD_del_response_header (struct MHD_Response *response,
692 * @return number of entries iterated over 692 * @return number of entries iterated over
693 * @ingroup response 693 * @ingroup response
694 */ 694 */
695int 695_MHD_EXTERN int
696MHD_get_response_headers (struct MHD_Response *response, 696MHD_get_response_headers (struct MHD_Response *response,
697 MHD_KeyValueIterator iterator, 697 MHD_KeyValueIterator iterator,
698 void *iterator_cls) 698 void *iterator_cls)
@@ -724,7 +724,7 @@ MHD_get_response_headers (struct MHD_Response *response,
724 * @return NULL if header does not exist 724 * @return NULL if header does not exist
725 * @ingroup response 725 * @ingroup response
726 */ 726 */
727const char * 727_MHD_EXTERN const char *
728MHD_get_response_header (struct MHD_Response *response, 728MHD_get_response_header (struct MHD_Response *response,
729 const char *key) 729 const char *key)
730{ 730{
@@ -856,7 +856,7 @@ MHD_check_response_header_token_ci (const struct MHD_Response *response,
856 * @return NULL on error (i.e. invalid arguments, out of memory) 856 * @return NULL on error (i.e. invalid arguments, out of memory)
857 * @ingroup response 857 * @ingroup response
858 */ 858 */
859struct MHD_Response * 859_MHD_EXTERN struct MHD_Response *
860MHD_create_response_from_callback (uint64_t size, 860MHD_create_response_from_callback (uint64_t size,
861 size_t block_size, 861 size_t block_size,
862 MHD_ContentReaderCallback crc, 862 MHD_ContentReaderCallback crc,
@@ -897,7 +897,7 @@ MHD_create_response_from_callback (uint64_t size,
897 * @param ... #MHD_RO_END terminated list of options 897 * @param ... #MHD_RO_END terminated list of options
898 * @return #MHD_YES on success, #MHD_NO on error 898 * @return #MHD_YES on success, #MHD_NO on error
899 */ 899 */
900enum MHD_Result 900_MHD_EXTERN enum MHD_Result
901MHD_set_response_options (struct MHD_Response *response, 901MHD_set_response_options (struct MHD_Response *response,
902 enum MHD_ResponseFlags flags, 902 enum MHD_ResponseFlags flags,
903 ...) 903 ...)
@@ -1111,7 +1111,7 @@ free_callback (void *cls)
1111 * @return NULL on error (i.e. invalid arguments, out of memory) 1111 * @return NULL on error (i.e. invalid arguments, out of memory)
1112 * @ingroup response 1112 * @ingroup response
1113 */ 1113 */
1114struct MHD_Response * 1114_MHD_EXTERN struct MHD_Response *
1115MHD_create_response_from_fd_at_offset (size_t size, 1115MHD_create_response_from_fd_at_offset (size_t size,
1116 int fd, 1116 int fd,
1117 off_t offset) 1117 off_t offset)
@@ -1231,7 +1231,7 @@ MHD_create_response_from_pipe (int fd)
1231 * @return NULL on error (i.e. invalid arguments, out of memory) 1231 * @return NULL on error (i.e. invalid arguments, out of memory)
1232 * @ingroup response 1232 * @ingroup response
1233 */ 1233 */
1234struct MHD_Response * 1234_MHD_EXTERN struct MHD_Response *
1235MHD_create_response_from_fd (size_t size, 1235MHD_create_response_from_fd (size_t size,
1236 int fd) 1236 int fd)
1237{ 1237{
@@ -1290,7 +1290,7 @@ MHD_create_response_from_fd64 (uint64_t size,
1290 * @deprecated use #MHD_create_response_from_buffer instead 1290 * @deprecated use #MHD_create_response_from_buffer instead
1291 * @ingroup response 1291 * @ingroup response
1292 */ 1292 */
1293struct MHD_Response * 1293_MHD_EXTERN struct MHD_Response *
1294MHD_create_response_from_data (size_t size, 1294MHD_create_response_from_data (size_t size,
1295 void *data, 1295 void *data,
1296 int must_free, 1296 int must_free,
@@ -1348,7 +1348,7 @@ MHD_create_response_from_data (size_t size,
1348 * @return NULL on error (i.e. invalid arguments, out of memory) 1348 * @return NULL on error (i.e. invalid arguments, out of memory)
1349 * @ingroup response 1349 * @ingroup response
1350 */ 1350 */
1351struct MHD_Response * 1351_MHD_EXTERN struct MHD_Response *
1352MHD_create_response_from_buffer (size_t size, 1352MHD_create_response_from_buffer (size_t size,
1353 void *buffer, 1353 void *buffer,
1354 enum MHD_ResponseMemoryMode mode) 1354 enum MHD_ResponseMemoryMode mode)
@@ -1613,7 +1613,7 @@ MHD_create_response_from_iovec (const struct MHD_IoVec *iov,
1613 * @note Available since #MHD_VERSION 0x00097503 1613 * @note Available since #MHD_VERSION 0x00097503
1614 * @ingroup response 1614 * @ingroup response
1615 */ 1615 */
1616struct MHD_Response * 1616_MHD_EXTERN struct MHD_Response *
1617MHD_create_response_empty (enum MHD_ResponseFlags flags) 1617MHD_create_response_empty (enum MHD_ResponseFlags flags)
1618{ 1618{
1619 struct MHD_Response *r; 1619 struct MHD_Response *r;
@@ -2044,7 +2044,7 @@ MHD_create_response_for_upgrade (MHD_UpgradeHandler upgrade_handler,
2044 * @param response response to destroy 2044 * @param response response to destroy
2045 * @ingroup response 2045 * @ingroup response
2046 */ 2046 */
2047void 2047_MHD_EXTERN void
2048MHD_destroy_response (struct MHD_Response *response) 2048MHD_destroy_response (struct MHD_Response *response)
2049{ 2049{
2050 struct MHD_HTTP_Res_Header *pos; 2050 struct MHD_HTTP_Res_Header *pos;