libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 248dc0456c448faac6de06e399d50b85ad28182d
parent cbe5b878b44b7442d2335ead7732f14c540bb033
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Sat, 22 Mar 2025 17:04:41 +0300

MHD_stream_get_info_*(): harmonised structs and doxy

Diffstat:
Msrc/include/microhttpd2.h | 16+++++++++-------
Msrc/include/microhttpd2_main.h.in | 16+++++++++-------
2 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h @@ -10014,20 +10014,21 @@ enum MHD_FIXED_ENUM_APP_SET_ MHD_StreamInfoFixedType union MHD_StreamInfoFixedData { /** - * Connection handler type + * The data for the #MHD_STREAM_INFO_FIXED_DAEMON query */ - struct MHD_Connection *v_connection; + struct MHD_Daemon *v_daemon; /** - * Daemon handler type + * The data for the #MHD_STREAM_INFO_FIXED_CONNECTION query */ - struct MHD_Daemon *v_daemon; + struct MHD_Connection *v_connection; }; /** * Obtain fixed information about the given stream. * This information is not changed for the lifetime of the stream. - * The wrapper macro #MHD_stream_get_info_fixed() could be more convenient. + * + * The wrapper macro #MHD_stream_get_info_fixed() may be more convenient. * * @param stream the stream to get information about * @param info_type the type of information requested @@ -10103,7 +10104,7 @@ enum MHD_FIXED_ENUM_APP_SET_ MHD_StreamInfoDynamicType union MHD_StreamInfoDynamicData { /** - * The MHD_Request handler type + * The data for the #MHD_STREAM_INFO_DYNAMIC_REQUEST query */ struct MHD_Request *v_request; }; @@ -10111,7 +10112,8 @@ union MHD_StreamInfoDynamicData /** * Obtain dynamic information about the given stream. * This information may be changed during the lifetime of the stream. - * The wrapper macro #MHD_stream_get_info_dynamic() could be more convenient. + * + * The wrapper macro #MHD_stream_get_info_dynamic() may be more convenient. * * @param stream the stream to get information about * @param info_type the type of information requested diff --git a/src/include/microhttpd2_main.h.in b/src/include/microhttpd2_main.h.in @@ -5392,20 +5392,21 @@ enum MHD_FIXED_ENUM_APP_SET_ MHD_StreamInfoFixedType union MHD_StreamInfoFixedData { /** - * Connection handler type + * The data for the #MHD_STREAM_INFO_FIXED_DAEMON query */ - struct MHD_Connection *v_connection; + struct MHD_Daemon *v_daemon; /** - * Daemon handler type + * The data for the #MHD_STREAM_INFO_FIXED_CONNECTION query */ - struct MHD_Daemon *v_daemon; + struct MHD_Connection *v_connection; }; /** * Obtain fixed information about the given stream. * This information is not changed for the lifetime of the stream. - * The wrapper macro #MHD_stream_get_info_fixed() could be more convenient. + * + * The wrapper macro #MHD_stream_get_info_fixed() may be more convenient. * * @param stream the stream to get information about * @param info_type the type of information requested @@ -5481,7 +5482,7 @@ enum MHD_FIXED_ENUM_APP_SET_ MHD_StreamInfoDynamicType union MHD_StreamInfoDynamicData { /** - * The MHD_Request handler type + * The data for the #MHD_STREAM_INFO_DYNAMIC_REQUEST query */ struct MHD_Request *v_request; }; @@ -5489,7 +5490,8 @@ union MHD_StreamInfoDynamicData /** * Obtain dynamic information about the given stream. * This information may be changed during the lifetime of the stream. - * The wrapper macro #MHD_stream_get_info_dynamic() could be more convenient. + * + * The wrapper macro #MHD_stream_get_info_dynamic() may be more convenient. * * @param stream the stream to get information about * @param info_type the type of information requested