aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-08 23:38:07 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-08 23:38:07 +0200
commit89d2ef97322ff5276e9a437e616a1e07529e0b26 (patch)
treec556b686eb323ca61036d69774553056ac8e2361 /src/include
parentde872dea2d88f183c3f434c694acdcdb373f639c (diff)
parentda0585902ce08aacf97f7711b85343d4d45c80fe (diff)
downloadlibmicrohttpd-89d2ef97322ff5276e9a437e616a1e07529e0b26.tar.gz
libmicrohttpd-89d2ef97322ff5276e9a437e616a1e07529e0b26.zip
define and use 'enum MHD_Result' (merge)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/microhttpd.h22
-rw-r--r--src/include/microhttpd2.h16
2 files changed, 19 insertions, 19 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index f0daa3df..00d4f9bd 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -43,7 +43,7 @@
43 * 43 *
44 * MHD understands POST data and is able to decode certain formats 44 * MHD understands POST data and is able to decode certain formats
45 * (at the moment only "application/x-www-form-urlencoded" and 45 * (at the moment only "application/x-www-form-urlencoded" and
46 * "mulitpart/formdata"). Unsupported encodings and large POST 46 * "multipart/formdata"). Unsupported encodings and large POST
47 * submissions may require the application to manually process 47 * submissions may require the application to manually process
48 * the stream, which is provided to the main application (and thus can be 48 * the stream, which is provided to the main application (and thus can be
49 * processed, just not conveniently by MHD). 49 * processed, just not conveniently by MHD).
@@ -132,7 +132,7 @@ typedef intptr_t ssize_t;
132 * Current version of the library. 132 * Current version of the library.
133 * 0x01093001 = 1.9.30-1. 133 * 0x01093001 = 1.9.30-1.
134 */ 134 */
135#define MHD_VERSION 0x00097001 135#define MHD_VERSION 0x00097002
136 136
137/** 137/**
138 * Operational results from MHD calls. 138 * Operational results from MHD calls.
@@ -530,7 +530,7 @@ MHD_get_reason_phrase_for (unsigned int code);
530/** 530/**
531 * Flag to be or-ed with MHD_HTTP status code for 531 * Flag to be or-ed with MHD_HTTP status code for
532 * SHOUTcast. This will cause the response to begin 532 * SHOUTcast. This will cause the response to begin
533 * with the SHOUTcast "ICY" line instad of "HTTP". 533 * with the SHOUTcast "ICY" line instead of "HTTP".
534 * @ingroup specialized 534 * @ingroup specialized
535 */ 535 */
536#define MHD_ICY_FLAG ((uint32_t) (((uint32_t) 1) << 31)) 536#define MHD_ICY_FLAG ((uint32_t) (((uint32_t) 1) << 31))
@@ -1570,7 +1570,7 @@ enum MHD_OPTION
1570 * of the buffer pointed to by the second argument in bytes. 1570 * of the buffer pointed to by the second argument in bytes.
1571 * Note that the application must ensure that the buffer of the 1571 * Note that the application must ensure that the buffer of the
1572 * second argument remains allocated and unmodified while the 1572 * second argument remains allocated and unmodified while the
1573 * deamon is running. 1573 * daemon is running.
1574 */ 1574 */
1575 MHD_OPTION_DIGEST_AUTH_RANDOM = 17, 1575 MHD_OPTION_DIGEST_AUTH_RANDOM = 17,
1576 1576
@@ -1636,7 +1636,7 @@ enum MHD_OPTION
1636 * If present and set to true, allow reusing address:port socket 1636 * If present and set to true, allow reusing address:port socket
1637 * (by using SO_REUSEPORT on most platform, or platform-specific ways). 1637 * (by using SO_REUSEPORT on most platform, or platform-specific ways).
1638 * If present and set to false, disallow reusing address:port socket 1638 * If present and set to false, disallow reusing address:port socket
1639 * (does nothing on most plaform, but uses SO_EXCLUSIVEADDRUSE on Windows). 1639 * (does nothing on most platform, but uses SO_EXCLUSIVEADDRUSE on Windows).
1640 * This option must be followed by a `unsigned int` argument. 1640 * This option must be followed by a `unsigned int` argument.
1641 */ 1641 */
1642 MHD_OPTION_LISTENING_ADDRESS_REUSE = 25, 1642 MHD_OPTION_LISTENING_ADDRESS_REUSE = 25,
@@ -2046,7 +2046,7 @@ enum MHD_ConnectionInfoType
2046 2046
2047/** 2047/**
2048 * Values of this enum are used to specify what 2048 * Values of this enum are used to specify what
2049 * information about a deamon is desired. 2049 * information about a daemon is desired.
2050 */ 2050 */
2051enum MHD_DaemonInfoType 2051enum MHD_DaemonInfoType
2052{ 2052{
@@ -2107,8 +2107,8 @@ enum MHD_DaemonInfoType
2107 * an error message and `abort()`. 2107 * an error message and `abort()`.
2108 * 2108 *
2109 * @param cls user specified value 2109 * @param cls user specified value
2110 * @param file where the error occured 2110 * @param file where the error occurred
2111 * @param line where the error occured 2111 * @param line where the error occurred
2112 * @param reason error detail, may be NULL 2112 * @param reason error detail, may be NULL
2113 * @ingroup logging 2113 * @ingroup logging
2114 */ 2114 */
@@ -2168,7 +2168,7 @@ typedef enum MHD_Result
2168 * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). 2168 * can be set with the #MHD_OPTION_NOTIFY_COMPLETED).
2169 * Initially, `*con_cls` will be NULL. 2169 * Initially, `*con_cls` will be NULL.
2170 * @return #MHD_YES if the connection was handled successfully, 2170 * @return #MHD_YES if the connection was handled successfully,
2171 * #MHD_NO if the socket must be closed due to a serios 2171 * #MHD_NO if the socket must be closed due to a serious
2172 * error while handling the request 2172 * error while handling the request
2173 */ 2173 */
2174typedef enum MHD_Result 2174typedef enum MHD_Result
@@ -3348,7 +3348,7 @@ MHD_create_response_for_upgrade (MHD_UpgradeHandler upgrade_handler,
3348 * Destroy a response object and associated resources. Note that 3348 * Destroy a response object and associated resources. Note that
3349 * libmicrohttpd may keep some of the resources around if the response 3349 * libmicrohttpd may keep some of the resources around if the response
3350 * is still in the queue for some clients, so the memory may not 3350 * is still in the queue for some clients, so the memory may not
3351 * necessarily be freed immediatley. 3351 * necessarily be freed immediately.
3352 * 3352 *
3353 * @param response response to destroy 3353 * @param response response to destroy
3354 * @ingroup response 3354 * @ingroup response
@@ -3584,7 +3584,7 @@ MHD_digest_auth_check2 (struct MHD_Connection *connection,
3584 * Uses #MHD_DIGEST_ALG_MD5 (for now, for backwards-compatibility). 3584 * Uses #MHD_DIGEST_ALG_MD5 (for now, for backwards-compatibility).
3585 * Note that this MAY change to #MHD_DIGEST_ALG_AUTO in the future. 3585 * Note that this MAY change to #MHD_DIGEST_ALG_AUTO in the future.
3586 * If you want to be sure you get MD5, use #MHD_digest_auth_check2() 3586 * If you want to be sure you get MD5, use #MHD_digest_auth_check2()
3587 * and specifiy MD5 explicitly. 3587 * and specify MD5 explicitly.
3588 * 3588 *
3589 * @param connection The MHD connection structure 3589 * @param connection The MHD connection structure
3590 * @param realm The realm presented to the client 3590 * @param realm The realm presented to the client
diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h
index 1262c7a8..7c1b5187 100644
--- a/src/include/microhttpd2.h
+++ b/src/include/microhttpd2.h
@@ -536,7 +536,7 @@ enum MHD_StatusCode
536 MHD_SC_TLS_DISABLED = 50000, 536 MHD_SC_TLS_DISABLED = 50000,
537 537
538 /** 538 /**
539 * The application attempted to setup TLS paramters before 539 * The application attempted to setup TLS parameters before
540 * enabling TLS. 540 * enabling TLS.
541 */ 541 */
542 MHD_SC_TLS_BACKEND_UNINITIALIZED = 50003, 542 MHD_SC_TLS_BACKEND_UNINITIALIZED = 50003,
@@ -1469,7 +1469,7 @@ enum MHD_Method
1469 * @param method the HTTP method used (#MHD_HTTP_METHOD_GET, 1469 * @param method the HTTP method used (#MHD_HTTP_METHOD_GET,
1470 * #MHD_HTTP_METHOD_PUT, etc.) 1470 * #MHD_HTTP_METHOD_PUT, etc.)
1471 * @return action how to proceed, NULL 1471 * @return action how to proceed, NULL
1472 * if the socket must be closed due to a serios 1472 * if the socket must be closed due to a serious
1473 * error while handling the request 1473 * error while handling the request
1474 */ 1474 */
1475typedef const struct MHD_Action * 1475typedef const struct MHD_Action *
@@ -2005,7 +2005,7 @@ MHD_NONNULL (1);
2005 * If present true, allow reusing address:port socket (by using 2005 * If present true, allow reusing address:port socket (by using
2006 * SO_REUSEPORT on most platform, or platform-specific ways). If 2006 * SO_REUSEPORT on most platform, or platform-specific ways). If
2007 * present and set to false, disallow reusing address:port socket 2007 * present and set to false, disallow reusing address:port socket
2008 * (does nothing on most plaform, but uses SO_EXCLUSIVEADDRUSE on 2008 * (does nothing on most platform, but uses SO_EXCLUSIVEADDRUSE on
2009 * Windows). 2009 * Windows).
2010 * Ineffective in conjunction with #MHD_daemon_listen_socket(). 2010 * Ineffective in conjunction with #MHD_daemon_listen_socket().
2011 * 2011 *
@@ -2124,7 +2124,7 @@ MHD_NONNULL (1);
2124 2124
2125/** 2125/**
2126 * Use SHOUTcast. This will cause the response to begin 2126 * Use SHOUTcast. This will cause the response to begin
2127 * with the SHOUTcast "ICY" line instad of "HTTP". 2127 * with the SHOUTcast "ICY" line instead of "HTTP".
2128 * 2128 *
2129 * @param daemon daemon to set SHOUTcast option for 2129 * @param daemon daemon to set SHOUTcast option for
2130 */ 2130 */
@@ -2566,7 +2566,7 @@ MHD_NONNULL (1);
2566/** 2566/**
2567 * Set random values to be used by the Digest Auth module. Note that 2567 * Set random values to be used by the Digest Auth module. Note that
2568 * the application must ensure that @a buf remains allocated and 2568 * the application must ensure that @a buf remains allocated and
2569 * unmodified while the deamon is running. 2569 * unmodified while the daemon is running.
2570 * 2570 *
2571 * @param daemon daemon to configure 2571 * @param daemon daemon to configure
2572 * @param buf_size number of bytes in @a buf 2572 * @param buf_size number of bytes in @a buf
@@ -3886,7 +3886,7 @@ MHD_NONNULL (1,3);
3886 3886
3887/** 3887/**
3888 * Values of this enum are used to specify what 3888 * Values of this enum are used to specify what
3889 * information about a deamon is desired. 3889 * information about a daemon is desired.
3890 */ 3890 */
3891enum MHD_DaemonInformationType 3891enum MHD_DaemonInformationType
3892{ 3892{
@@ -3996,8 +3996,8 @@ MHD_NONNULL (1,3);
3996 * an error message and `abort()`. 3996 * an error message and `abort()`.
3997 * 3997 *
3998 * @param cls user specified value 3998 * @param cls user specified value
3999 * @param file where the error occured 3999 * @param file where the error occurred
4000 * @param line where the error occured 4000 * @param line where the error occurred
4001 * @param reason error detail, may be NULL 4001 * @param reason error detail, may be NULL
4002 * @ingroup logging 4002 * @ingroup logging
4003 */ 4003 */