commit 2a71dbd38f47cb067e61b681d7ac5dd39d26b754
parent c47bb426b67e9d4289d0344db8d04bac07998562
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 24 Nov 2022 09:30:35 +0300
MHD_get_version_bin(): added new function
Diffstat:
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
@@ -96,7 +96,7 @@ extern "C"
* they are parsed as decimal numbers.
* Example: 0x01093001 = 1.9.30-1.
*/
-#define MHD_VERSION 0x00097543
+#define MHD_VERSION 0x00097544
/* If generic headers don't work on your platform, include headers
which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t',
@@ -5936,6 +5936,18 @@ MHD_get_version (void);
/**
+ * Obtain the version of this library as a binary value.
+ *
+ * @return version binary value, e.g. "0x00090900" (#MHD_VERSION of
+ * compiled MHD binary)
+ * @note Available since #MHD_VERSION 0x00097544
+ * @ingroup specialized
+ */
+_MHD_EXTERN uint32_t
+MHD_get_version_bin (void);
+
+
+/**
* Types of information about MHD features,
* used by #MHD_is_feature_supported().
*/
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -8577,6 +8577,21 @@ MHD_get_version (void)
/**
+ * Obtain the version of this library as a binary value.
+ *
+ * @return version binary value, e.g. "0x00090900" (#MHD_VERSION of
+ * compiled MHD binary)
+ * @note Available since #MHD_VERSION 0x00097544
+ * @ingroup specialized
+ */
+_MHD_EXTERN uint32_t
+MHD_get_version_bin (void)
+{
+ return (uint32_t) MHD_VERSION;
+}
+
+
+/**
* Get information about supported MHD features.
* Indicate that MHD was compiled with or without support for
* particular feature. Some features require additional support