From 8a88bc9335bc30ba2cf2719d7f26f93267ff7104 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sat, 6 May 2017 21:49:27 +0300 Subject: [PATCH] microhttpd.h: deprecate unused MHD_RESPONSE_HEADER_KIND value --- doc/libmicrohttpd.texi | 3 --- src/include/microhttpd.h | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi index bdbe3de7..5a0cc8fb 100644 --- a/doc/libmicrohttpd.texi +++ b/doc/libmicrohttpd.texi @@ -1047,9 +1047,6 @@ The @code{MHD_ValueKind} specifies the source of the key-value pairs in the HTTP protocol. @table @code -@item MHD_RESPONSE_HEADER_KIND -Response header. - @item MHD_HEADER_KIND HTTP header. diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index ca0059fa..a026b565 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h @@ -1526,11 +1526,15 @@ enum MHD_ValueKind /** * Response header + * @deprecated */ MHD_RESPONSE_HEADER_KIND = 0, +#define MHD_RESPONSE_HEADER_KIND \ + _MHD_DEPR_IN_MACRO("Value MHD_RESPONSE_HEADER_KIND is deprecated and not used") \ + MHD_RESPONSE_HEADER_KIND /** - * HTTP header. + * HTTP header (request/response). */ MHD_HEADER_KIND = 1,