[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 193/335: GENERATED: add missed options
From: |
gnunet |
Subject: |
[libmicrohttpd] 193/335: GENERATED: add missed options |
Date: |
Sat, 27 Jul 2024 22:01:29 +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 1757738739b36bf789ad17f4a4079a74ca20ff3a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Jun 8 14:22:51 2024 +0200
GENERATED: add missed options
---
src/mhd2/daemon_set_options.c | 7 ++++++-
src/mhd2/response_set_options.c | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/mhd2/daemon_set_options.c b/src/mhd2/daemon_set_options.c
index f0641656..18369922 100644
--- a/src/mhd2/daemon_set_options.c
+++ b/src/mhd2/daemon_set_options.c
@@ -31,6 +31,8 @@ MHD_daemon_set_options (struct MHD_Daemon *daemon,
{
const struct MHD_DaemonOptionAndValue *const option = options + i;
switch (option->opt) {
+ case MHD_D_O_END:
+ return MHD_SC_OK;
case MHD_D_OPTION_WORK_MODE:
daemon->settings.work_mode = option->val.work_mode;
continue;
@@ -165,8 +167,11 @@ MHD_daemon_set_options (struct MHD_Daemon *daemon,
case MHD_D_OPTION_DAUTH_DEF_MAX_NC:
daemon->settings.dauth_def_max_nc = option->val.dauth_def_max_nc;
continue;
+ case MHD_D_O_SENTINEL:
+ default:
+ break;
}
- return MHD_SC_OPTION_UNSUPPORTED;
+ return MHD_SC_OPTION_UNKNOWN;
}
return MHD_SC_OK;
}
diff --git a/src/mhd2/response_set_options.c b/src/mhd2/response_set_options.c
index 5895d981..cb34ff36 100644
--- a/src/mhd2/response_set_options.c
+++ b/src/mhd2/response_set_options.c
@@ -30,6 +30,8 @@ MHD_response_set_options (struct MHD_Response *response,
{
const struct MHD_ResponseOptionAndValue *const option = options + i;
switch (option->opt) {
+ case MHD_R_O_END:
+ return MHD_SC_OK;
case MHD_R_OPTION_REUSABLE:
response->settings.reusable = option->val.reusable;
continue;
@@ -55,8 +57,11 @@ MHD_response_set_options (struct MHD_Response *response,
response->settings.termination_callback.v_term_cb =
option->val.termination_callback.v_term_cb;
response->settings.termination_callback.v_term_cb_cls =
option->val.termination_callback.v_term_cb_cls;
continue;
+ case MHD_R_O_SENTINEL:
+ default:
+ break;
}
- return MHD_SC_OPTION_UNSUPPORTED;
+ return MHD_SC_OPTION_UNKNOWN;
}
return MHD_SC_OK;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 195/335: GENERATED: use pointer for the daemon settings, (continued)
- [libmicrohttpd] 195/335: GENERATED: use pointer for the daemon settings, gnunet, 2024/07/27
- [libmicrohttpd] 198/335: This API is even more *TERRIBLE*, gnunet, 2024/07/27
- [libmicrohttpd] 201/335: configure: added detection of the binary format of NULL pointers, gnunet, 2024/07/27
- [libmicrohttpd] 183/335: configure: fixed configuration summary, gnunet, 2024/07/27
- [libmicrohttpd] 197/335: GENERATED: use logger directly, gnunet, 2024/07/27
- [libmicrohttpd] 204/335: configure: improved checks for function name magic-macros, gnunet, 2024/07/27
- [libmicrohttpd] 202/335: configure: added detection of variadic macros support, gnunet, 2024/07/27
- [libmicrohttpd] 190/335: GENERATED: C89/C99, gnunet, 2024/07/27
- [libmicrohttpd] 208/335: .gitignore: updated, gnunet, 2024/07/27
- [libmicrohttpd] 210/335: configure: improved tests for non-standard platforms, gnunet, 2024/07/27
- [libmicrohttpd] 193/335: GENERATED: add missed options,
gnunet <=
- [libmicrohttpd] 191/335: GENERATED: fixed options addressing, gnunet, 2024/07/27
- [libmicrohttpd] 211/335: configure: check for AF_UNIX headers, gnunet, 2024/07/27
- [libmicrohttpd] 200/335: configure: rewritten checks for inline and force inline keywords, gnunet, 2024/07/27
- [libmicrohttpd] 199/335: configure: added separate controls for MHD log and HTTP auto replies, gnunet, 2024/07/27
- [libmicrohttpd] 213/335: configure: check for socklen_t and substitute with a replacement if not available, gnunet, 2024/07/27
- [libmicrohttpd] 194/335: GENERATED: fixed macro names instead of enum values, gnunet, 2024/07/27
- [libmicrohttpd] 206/335: configure: renamed _MHD_NORETURN -> MHD_NORETURN_, gnunet, 2024/07/27
- [libmicrohttpd] 219/335: configure: improved testing for supported function attributes, gnunet, 2024/07/27
- [libmicrohttpd] 218/335: configure: added checks for sokets-related symbols declarations, gnunet, 2024/07/27
- [libmicrohttpd] 222/335: this_API_is_TERRIBLE: even more, gnunet, 2024/07/27