diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-08 22:59:05 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-08 22:59:05 +0200 |
commit | 6347f514aa2388e774d5bf356df8046864e5f73c (patch) | |
tree | 98cebf52cce627341d62620255f0ffe0ed36365d /src/microhttpd/response.c | |
parent | 6702e6202368720d7a381669c03eedc318f225ca (diff) | |
download | libmicrohttpd-6347f514aa2388e774d5bf356df8046864e5f73c.tar.gz libmicrohttpd-6347f514aa2388e774d5bf356df8046864e5f73c.zip |
introduce 'enum MHD_Result'
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r-- | src/microhttpd/response.c | 16 |
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 | */ |
81 | static int | 81 | static enum MHD_Result |
82 | add_response_entry (struct MHD_Response *response, | 82 | add_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 | */ |
132 | int | 132 | enum MHD_Result |
133 | MHD_add_response_header (struct MHD_Response *response, | 133 | MHD_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 | */ |
176 | int | 176 | enum MHD_Result |
177 | MHD_add_response_footer (struct MHD_Response *response, | 177 | MHD_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 | */ |
197 | int | 197 | enum MHD_Result |
198 | MHD_del_response_header (struct MHD_Response *response, | 198 | MHD_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 | */ |
415 | int | 415 | enum MHD_Result |
416 | MHD_set_response_options (struct MHD_Response *response, | 416 | MHD_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 |
792 | MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh, | 792 | MHD_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 | */ |
897 | int | 897 | enum MHD_Result |
898 | MHD_response_execute_upgrade_ (struct MHD_Response *response, | 898 | MHD_response_execute_upgrade_ (struct MHD_Response *response, |
899 | struct MHD_Connection *connection) | 899 | struct MHD_Connection *connection) |
900 | { | 900 | { |