aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-08 22:59:05 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-08 22:59:05 +0200
commit6347f514aa2388e774d5bf356df8046864e5f73c (patch)
tree98cebf52cce627341d62620255f0ffe0ed36365d /src/microhttpd/response.c
parent6702e6202368720d7a381669c03eedc318f225ca (diff)
downloadlibmicrohttpd-6347f514aa2388e774d5bf356df8046864e5f73c.tar.gz
libmicrohttpd-6347f514aa2388e774d5bf356df8046864e5f73c.zip
introduce 'enum MHD_Result'
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r--src/microhttpd/response.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 5adfdfa9..abedefcf 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -78,7 +78,7 @@
78 * @param content value to add 78 * @param content value to add
79 * @return #MHD_NO on error (i.e. invalid header or content format). 79 * @return #MHD_NO on error (i.e. invalid header or content format).
80 */ 80 */
81static int 81static enum MHD_Result
82add_response_entry (struct MHD_Response *response, 82add_response_entry (struct MHD_Response *response,
83 enum MHD_ValueKind kind, 83 enum MHD_ValueKind kind,
84 const char *header, 84 const char *header,
@@ -129,7 +129,7 @@ add_response_entry (struct MHD_Response *response,
129 * @return #MHD_NO on error (i.e. invalid header or content format). 129 * @return #MHD_NO on error (i.e. invalid header or content format).
130 * @ingroup response 130 * @ingroup response
131 */ 131 */
132int 132enum MHD_Result
133MHD_add_response_header (struct MHD_Response *response, 133MHD_add_response_header (struct MHD_Response *response,
134 const char *header, 134 const char *header,
135 const char *content) 135 const char *content)
@@ -173,7 +173,7 @@ MHD_add_response_header (struct MHD_Response *response,
173 * @return #MHD_NO on error (i.e. invalid footer or content format). 173 * @return #MHD_NO on error (i.e. invalid footer or content format).
174 * @ingroup response 174 * @ingroup response
175 */ 175 */
176int 176enum MHD_Result
177MHD_add_response_footer (struct MHD_Response *response, 177MHD_add_response_footer (struct MHD_Response *response,
178 const char *footer, 178 const char *footer,
179 const char *content) 179 const char *content)
@@ -194,7 +194,7 @@ MHD_add_response_footer (struct MHD_Response *response,
194 * @return #MHD_NO on error (no such header known) 194 * @return #MHD_NO on error (no such header known)
195 * @ingroup response 195 * @ingroup response
196 */ 196 */
197int 197enum MHD_Result
198MHD_del_response_header (struct MHD_Response *response, 198MHD_del_response_header (struct MHD_Response *response,
199 const char *header, 199 const char *header,
200 const char *content) 200 const char *content)
@@ -412,13 +412,13 @@ MHD_create_response_from_callback (uint64_t size,
412 * @param ... #MHD_RO_END terminated list of options 412 * @param ... #MHD_RO_END terminated list of options
413 * @return #MHD_YES on success, #MHD_NO on error 413 * @return #MHD_YES on success, #MHD_NO on error
414 */ 414 */
415int 415enum MHD_Result
416MHD_set_response_options (struct MHD_Response *response, 416MHD_set_response_options (struct MHD_Response *response,
417 enum MHD_ResponseFlags flags, 417 enum MHD_ResponseFlags flags,
418 ...) 418 ...)
419{ 419{
420 va_list ap; 420 va_list ap;
421 int ret; 421 enum MHD_Result ret;
422 enum MHD_ResponseOptions ro; 422 enum MHD_ResponseOptions ro;
423 423
424 ret = MHD_YES; 424 ret = MHD_YES;
@@ -788,7 +788,7 @@ MHD_create_response_from_buffer_with_free_callback (size_t size,
788 * @param ... arguments to the action (depends on the action) 788 * @param ... arguments to the action (depends on the action)
789 * @return #MHD_NO on error, #MHD_YES on success 789 * @return #MHD_NO on error, #MHD_YES on success
790 */ 790 */
791_MHD_EXTERN int 791_MHD_EXTERN enum MHD_Result
792MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh, 792MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh,
793 enum MHD_UpgradeAction action, 793 enum MHD_UpgradeAction action,
794 ...) 794 ...)
@@ -894,7 +894,7 @@ MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh,
894 * @return #MHD_YES on success, #MHD_NO on failure (will cause 894 * @return #MHD_YES on success, #MHD_NO on failure (will cause
895 * connection to be closed) 895 * connection to be closed)
896 */ 896 */
897int 897enum MHD_Result
898MHD_response_execute_upgrade_ (struct MHD_Response *response, 898MHD_response_execute_upgrade_ (struct MHD_Response *response,
899 struct MHD_Connection *connection) 899 struct MHD_Connection *connection)
900{ 900{