diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-11-24 09:30:35 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-12-19 18:13:44 +0300 |
commit | 2a71dbd38f47cb067e61b681d7ac5dd39d26b754 (patch) | |
tree | 41893dd7fd908085806a9894cb632977c1636bd0 | |
parent | c47bb426b67e9d4289d0344db8d04bac07998562 (diff) | |
download | libmicrohttpd-2a71dbd38f47cb067e61b681d7ac5dd39d26b754.tar.gz libmicrohttpd-2a71dbd38f47cb067e61b681d7ac5dd39d26b754.zip |
MHD_get_version_bin(): added new function
-rw-r--r-- | src/include/microhttpd.h | 14 | ||||
-rw-r--r-- | src/microhttpd/daemon.c | 15 |
2 files changed, 28 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 0eae3f9f..b66f4b3d 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -96,7 +96,7 @@ extern "C" | |||
96 | * they are parsed as decimal numbers. | 96 | * they are parsed as decimal numbers. |
97 | * Example: 0x01093001 = 1.9.30-1. | 97 | * Example: 0x01093001 = 1.9.30-1. |
98 | */ | 98 | */ |
99 | #define MHD_VERSION 0x00097543 | 99 | #define MHD_VERSION 0x00097544 |
100 | 100 | ||
101 | /* If generic headers don't work on your platform, include headers | 101 | /* If generic headers don't work on your platform, include headers |
102 | which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', | 102 | which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', |
@@ -5936,6 +5936,18 @@ MHD_get_version (void); | |||
5936 | 5936 | ||
5937 | 5937 | ||
5938 | /** | 5938 | /** |
5939 | * Obtain the version of this library as a binary value. | ||
5940 | * | ||
5941 | * @return version binary value, e.g. "0x00090900" (#MHD_VERSION of | ||
5942 | * compiled MHD binary) | ||
5943 | * @note Available since #MHD_VERSION 0x00097544 | ||
5944 | * @ingroup specialized | ||
5945 | */ | ||
5946 | _MHD_EXTERN uint32_t | ||
5947 | MHD_get_version_bin (void); | ||
5948 | |||
5949 | |||
5950 | /** | ||
5939 | * Types of information about MHD features, | 5951 | * Types of information about MHD features, |
5940 | * used by #MHD_is_feature_supported(). | 5952 | * used by #MHD_is_feature_supported(). |
5941 | */ | 5953 | */ |
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 53ab147f..d854de31 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -8577,6 +8577,21 @@ MHD_get_version (void) | |||
8577 | 8577 | ||
8578 | 8578 | ||
8579 | /** | 8579 | /** |
8580 | * Obtain the version of this library as a binary value. | ||
8581 | * | ||
8582 | * @return version binary value, e.g. "0x00090900" (#MHD_VERSION of | ||
8583 | * compiled MHD binary) | ||
8584 | * @note Available since #MHD_VERSION 0x00097544 | ||
8585 | * @ingroup specialized | ||
8586 | */ | ||
8587 | _MHD_EXTERN uint32_t | ||
8588 | MHD_get_version_bin (void) | ||
8589 | { | ||
8590 | return (uint32_t) MHD_VERSION; | ||
8591 | } | ||
8592 | |||
8593 | |||
8594 | /** | ||
8580 | * Get information about supported MHD features. | 8595 | * Get information about supported MHD features. |
8581 | * Indicate that MHD was compiled with or without support for | 8596 | * Indicate that MHD was compiled with or without support for |
8582 | * particular feature. Some features require additional support | 8597 | * particular feature. Some features require additional support |