[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 150/335: microhttpd2.h: fixed all g++ warnings and error
From: |
gnunet |
Subject: |
[libmicrohttpd] 150/335: microhttpd2.h: fixed all g++ warnings and errors |
Date: |
Sat, 27 Jul 2024 22:00:46 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.
commit 6e0cec9837100097b7383d9da889d519340f0193
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Apr 9 00:23:33 2024 +0200
microhttpd2.h: fixed all g++ warnings and errors
---
src/include/microhttpd2.h | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)
diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h
index 295baca9..d9b152f9 100644
--- a/src/include/microhttpd2.h
+++ b/src/include/microhttpd2.h
@@ -2489,8 +2489,13 @@ enum MHD_FIXED_ENUM_MHD_APP_SET_ MHD_HTTP_PostEncoding
/**
* Predefined list of headers
+ * To be filled with HPACK static data
*/
-enum MHD_PredefinedHeader;
+enum MHD_PredefinedHeader
+{
+ MHD_PREDEF_ACCEPT_CHARSET = 15,
+ MHD_PREDEF_ACCEPT_LANGUAGE = 17
+};
/**
* Get text version of the predefined header.
@@ -2938,7 +2943,7 @@ union MHD_WorkModeParam
* Work mode parameters for #MHD_WM_EXTERNAL_EVENT_LOOP_CB_LEVEL and
* #MHD_WM_EXTERNAL_EVENT_LOOP_CB_EDGE modes
*/
- MHD_SocketRegistrationUpdateCallback v_external_event_loop_cb;
+ struct MHD_WorkModeExternalEventLoopCBParam v_external_event_loop_cb;
/**
* Number of worker threads for #MHD_WM_WORKER_THREADS.
* If set to one, then daemon starts with single worker thread that process
@@ -6775,9 +6780,9 @@ struct MHD_ConnectionOptionAndValue
*/
# define MHD_C_OPTION_TIMEOUT(timeout) \
MHD_NOWARN_COMPOUND_LITERALS_ \
- (const struct MHD_ConnectionOptionAndValue) \
+ (const struct MHD_ConnectionOptionAndValue) \
{ \
- .opt = (option), \
+ .opt = (MHD_C_O_TIMEOUT), \
.val.v_timeout = (timeout) \
} \
MHD_RESTORE_WARN_COMPOUND_LITERALS_
@@ -6788,7 +6793,7 @@ struct MHD_ConnectionOptionAndValue
*/
# define MHD_C_OPTION_TERMINATE() \
MHD_NOWARN_COMPOUND_LITERALS_ \
- (const struct MHD_ConnectionOptionAndValue) \
+ (const struct MHD_ConnectionOptionAndValue) \
{ \
.opt = (MHD_C_O_END) \
} \
@@ -6810,7 +6815,7 @@ MHD_C_OPTION_TIMEOUT (unsigned int timeout)
{
struct MHD_ConnectionOptionAndValue opt_val;
- opt_val.opt = option;
+ opt_val.opt = MHD_C_O_TIMEOUT;
opt_val.val.v_timeout = timeout;
return opt_val;
@@ -8171,7 +8176,7 @@ MHD_NOWARN_VARIADIC_MACROS_
*/
# define MHD_RESPONSE_OPTIONS_SET(response,...) \
MHD_NOWARN_COMPOUND_LITERALS_ \
- MHD_response_options_set (daemon, \
+ MHD_response_options_set (response, \
((const struct MHD_ResponseOptionAndValue[])
\
{__VA_ARGS__, MHD_R_OPTION_TERMINATE ()}),
\
MHD_OPTIONS_ARRAY_MAX_SIZE)
\
@@ -8181,7 +8186,7 @@ MHD_C_DECLRATIONS_FINISH_HERE_
# include <vector>
MHD_C_DECLRATIONS_START_HERE_
/**
- * Set the requested options for the daemon.
+ * Set the requested options for the response.
*
* If any option fail other options may be or may be not applied.
*
@@ -8190,16 +8195,16 @@ MHD_C_DECLRATIONS_START_HERE_
* MHD_RESPONE_OPTIONS_SET(d, MHD_R_OPTION_REUSABLE(MHD_YES),
* MHD_R_OPTION_TERMINATION_CALLBACK(func, cls))
*
- * @param daemon the daemon to set the options
+ * @param response the response to set the option
* @param ... the list of the options, each option must be created
- * by helpers MHD_D_OPTION_NameOfOption(option_value)
+ * by helpers MHD_RESPONSE_OPTION_NameOfOption(option_value)
* @return ::MHD_SC_OK on success,
* error code otherwise
*/
-# define MHD_DAEMON_OPTIONS_SET(daemon,...) \
+# define MHD_RESPONSE_OPTIONS_SET(response,...) \
MHD_NOWARN_CPP_INIT_LIST_ \
- MHD_daemon_options_set (daemon, \
- (std::vector<struct MHD_DaemonOptionAndValue> \
+ MHD_response_options_set (response, \
+ (std::vector<struct MHD_ResponseOptionAndValue> \
{__VA_ARGS__,MHD_R_OPTION_TERMINATE ()}).data (),
\
MHD_OPTIONS_ARRAY_MAX_SIZE) \
MHD_RESTORE_WARN_CPP_INIT_LIST_
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 155/335: microhttpd2.h: applied formatting, (continued)
- [libmicrohttpd] 155/335: microhttpd2.h: applied formatting, gnunet, 2024/07/27
- [libmicrohttpd] 157/335: stash, gnunet, 2024/07/27
- [libmicrohttpd] 144/335: add version check to uncrustify hook, gnunet, 2024/07/27
- [libmicrohttpd] 143/335: -fix _some_ compiler errors, gnunet, 2024/07/27
- [libmicrohttpd] 147/335: Fixed data in request options DB, gnunet, 2024/07/27
- [libmicrohttpd] 145/335: Revert most of cacc8860fce31961570a1ba0d6f74836890cfa5b, gnunet, 2024/07/27
- [libmicrohttpd] 132/335: Unified enum formatting, gnunet, 2024/07/27
- [libmicrohttpd] 140/335: Tmp: add doxy-config, gnunet, 2024/07/27
- [libmicrohttpd] 148/335: Fixed all doxygen warnings, gnunet, 2024/07/27
- [libmicrohttpd] 162/335: configure: check for more optional headers, gnunet, 2024/07/27
- [libmicrohttpd] 150/335: microhttpd2.h: fixed all g++ warnings and errors,
gnunet <=
- [libmicrohttpd] 146/335: microhttpd2.h: more fixes, gnunet, 2024/07/27
- [libmicrohttpd] 163/335: configure: use more headers when checking for calloc(), gnunet, 2024/07/27
- [libmicrohttpd] 151/335: spellcheck, gnunet, 2024/07/27
- [libmicrohttpd] 166/335: renamed mhd_sys_options.h -> mhd_sys_options.h, gnunet, 2024/07/27
- [libmicrohttpd] 164/335: configure: reworked _MHD_EXTERN definition, gnunet, 2024/07/27
- [libmicrohttpd] 149/335: microhttpd2.h: fixed all GCC warnings and errors, gnunet, 2024/07/27
- [libmicrohttpd] 153/335: say it is STF-funded, gnunet, 2024/07/27
- [libmicrohttpd] 169/335: mhd_sys_options.h: added support for more attributes for functions, gnunet, 2024/07/27
- [libmicrohttpd] 158/335: add response option generation;, gnunet, 2024/07/27
- [libmicrohttpd] 156/335: generator v1, gnunet, 2024/07/27