Added static inline function MHD_lib_get_fixed_info_bool()

This commit is contained in:
Evgeny Grin (Karlson2k)
2025-01-26 15:56:03 +01:00
parent ef28e741da
commit 9eaec1c928
2 changed files with 38 additions and 0 deletions
+19
View File
@@ -9036,6 +9036,25 @@ MHD_lib_get_info_ver_num (void)
return data.v_uint32;
}
MHD_STATIC_INLINE_END_
/**
* Get the fixed boolean information about the library.
* @param info the type of requested information, must be the value with
* the boolean resulting data; behaviour is undefined if other
* types of requested information is used
* @return #MHD_YES or #MHD_NO
*/
MHD_STATIC_INLINE_ MHD_FN_PURE_ enum MHD_Bool
MHD_lib_get_fixed_info_bool (enum MHD_LibInfoFixed info_type)
{
union MHD_LibInfoFixedData data;
(void) MHD_lib_get_info_fixed (info_type, \
&data); /* Never fail */
return data.v_bool;
}
MHD_STATIC_INLINE_END_
#endif /* ! MHD_NO_STATIC_INLINE */
+19
View File
@@ -4414,6 +4414,25 @@ MHD_lib_get_info_ver_num (void)
return data.v_uint32;
}
MHD_STATIC_INLINE_END_
/**
* Get the fixed boolean information about the library.
* @param info the type of requested information, must be the value with
* the boolean resulting data; behaviour is undefined if other
* types of requested information is used
* @return #MHD_YES or #MHD_NO
*/
MHD_STATIC_INLINE_ MHD_FN_PURE_ enum MHD_Bool
MHD_lib_get_fixed_info_bool (enum MHD_LibInfoFixed info_type)
{
union MHD_LibInfoFixedData data;
(void) MHD_lib_get_info_fixed (info_type, \
&data); /* Never fail */
return data.v_bool;
}
MHD_STATIC_INLINE_END_
#endif /* ! MHD_NO_STATIC_INLINE */