commit bec98ea6fd1aab3ee3c4249995c3270fa9ff75b3 parent 202a35f3f021741627e2efa8c78dd4a93eed0e30 Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev> Date: Sat, 28 Feb 2026 14:26:36 +0100 Added convenience internal macros Diffstat:
| M | src/mhd2/mhd_daemon.h | | | 16 | +++++++++++++++- |
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/mhd2/mhd_daemon.h b/src/mhd2/mhd_daemon.h @@ -267,12 +267,26 @@ typedef uintptr_t mhd_SockRelMarker; typedef unsigned char *mhd_SockRelMarker; #endif - +/** The marker of the empty position */ #define mhd_SOCKET_REL_MARKER_EMPTY ((mhd_SockRelMarker) (0)) +/** The marker of the ITC slot */ #define mhd_SOCKET_REL_MARKER_ITC ((mhd_SockRelMarker) (-1)) +/** The marker of the listen socket slot */ #define mhd_SOCKET_REL_MARKER_LISTEN (mhd_SOCKET_REL_MARKER_ITC - 1) + +/* Pointer version of the markers */ + +/** The marker of the empty position */ +#define mhd_SOCKET_REL_PTRMARKER_EMPTY ((void*) mhd_SOCKET_REL_MARKER_EMPTY) + +/** The marker of the ITC slot */ +#define mhd_SOCKET_REL_PTRMARKER_ITC ((void*) mhd_SOCKET_REL_MARKER_ITC) + +/** The marker of the listen socket slot */ +#define mhd_SOCKET_REL_PTRMARKER_LISTEN ((void*) mhd_SOCKET_REL_MARKER_LISTEN) + /** * Identifier of the FD related to event */