[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 195/335: GENERATED: use pointer for the daemon settings
From: |
gnunet |
Subject: |
[libmicrohttpd] 195/335: GENERATED: use pointer for the daemon settings |
Date: |
Sat, 27 Jul 2024 22:01:31 +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 8c4d949bab355d5399acd702c43a55e29c4b9f43
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Jun 8 14:32:46 2024 +0200
GENERATED: use pointer for the daemon settings
---
src/mhd2/daemon_set_options.c | 109 +++++++++++++++++++++---------------------
1 file changed, 55 insertions(+), 54 deletions(-)
diff --git a/src/mhd2/daemon_set_options.c b/src/mhd2/daemon_set_options.c
index cf6a11e5..f438787d 100644
--- a/src/mhd2/daemon_set_options.c
+++ b/src/mhd2/daemon_set_options.c
@@ -22,6 +22,7 @@ MHD_daemon_set_options (struct MHD_Daemon *daemon,
const struct MHD_DaemonOptionAndValue *options,
size_t options_max_num)
{
+ struct DaemonOptions *const settings = daemon->settings;
size_t i;
if (mhd_DAEMON_STATE_NOT_STARTED != daemon->state)
@@ -34,138 +35,138 @@ MHD_daemon_set_options (struct MHD_Daemon *daemon,
case MHD_D_O_END:
return MHD_SC_OK;
case MHD_D_O_WORK_MODE:
- daemon->settings.work_mode = option->val.work_mode;
+ settings->work_mode = option->val.work_mode;
continue;
case MHD_D_O_POLL_SYSCALL:
- daemon->settings.poll_syscall = option->val.poll_syscall;
+ settings->poll_syscall = option->val.poll_syscall;
continue;
case MHD_D_O_LOG_CALLBACK:
- daemon->settings.log_callback.v_log_cb =
option->val.log_callback.v_log_cb;
- daemon->settings.log_callback.v_lob_cb_cls =
option->val.log_callback.v_lob_cb_cls;
+ settings->log_callback.v_log_cb = option->val.log_callback.v_log_cb;
+ settings->log_callback.v_lob_cb_cls =
option->val.log_callback.v_lob_cb_cls;
continue;
case MHD_D_O_BIND_PORT:
- daemon->settings.bind_port.v_af = option->val.bind_port.v_af;
- daemon->settings.bind_port.v_port = option->val.bind_port.v_port;
+ settings->bind_port.v_af = option->val.bind_port.v_af;
+ settings->bind_port.v_port = option->val.bind_port.v_port;
continue;
case MHD_D_O_BIND_SA:
- daemon->settings.bind_sa.v_sa_len = option->val.bind_sa.v_sa_len;
- daemon->settings.bind_sa.v_sa = option->val.bind_sa.v_sa;
+ settings->bind_sa.v_sa_len = option->val.bind_sa.v_sa_len;
+ settings->bind_sa.v_sa = option->val.bind_sa.v_sa;
continue;
case MHD_D_O_LISTEN_SOCKET:
- daemon->settings.listen_socket = option->val.listen_socket;
+ settings->listen_socket = option->val.listen_socket;
continue;
case MHD_D_O_LISTEN_ADDR_REUSE:
- daemon->settings.listen_addr_reuse = option->val.listen_addr_reuse;
+ settings->listen_addr_reuse = option->val.listen_addr_reuse;
continue;
case MHD_D_O_TCP_FASTOPEN:
- daemon->settings.tcp_fastopen.v_option =
option->val.tcp_fastopen.v_option;
- daemon->settings.tcp_fastopen.v_queue_length =
option->val.tcp_fastopen.v_queue_length;
+ settings->tcp_fastopen.v_option = option->val.tcp_fastopen.v_option;
+ settings->tcp_fastopen.v_queue_length =
option->val.tcp_fastopen.v_queue_length;
continue;
case MHD_D_O_LISTEN_BACKLOG:
- daemon->settings.listen_backlog = option->val.listen_backlog;
+ settings->listen_backlog = option->val.listen_backlog;
continue;
case MHD_D_O_SIGPIPE_SUPPRESSED:
- daemon->settings.sigpipe_suppressed = option->val.sigpipe_suppressed;
+ settings->sigpipe_suppressed = option->val.sigpipe_suppressed;
continue;
case MHD_D_O_TLS:
- daemon->settings.tls = option->val.tls;
+ settings->tls = option->val.tls;
continue;
case MHD_D_O_TLS_KEY_CERT:
- daemon->settings.tls_key_cert.v_mem_key =
option->val.tls_key_cert.v_mem_key;
- daemon->settings.tls_key_cert.v_mem_cert =
option->val.tls_key_cert.v_mem_cert;
- daemon->settings.tls_key_cert.v_mem_pass =
option->val.tls_key_cert.v_mem_pass;
+ settings->tls_key_cert.v_mem_key = option->val.tls_key_cert.v_mem_key;
+ settings->tls_key_cert.v_mem_cert = option->val.tls_key_cert.v_mem_cert;
+ settings->tls_key_cert.v_mem_pass = option->val.tls_key_cert.v_mem_pass;
continue;
case MHD_D_O_TLS_CLIENT_CA:
- daemon->settings.tls_client_ca = option->val.tls_client_ca;
+ settings->tls_client_ca = option->val.tls_client_ca;
continue;
case MHD_D_O_TLS_PSK_CALLBACK:
- daemon->settings.tls_psk_callback.v_psk_cb =
option->val.tls_psk_callback.v_psk_cb;
- daemon->settings.tls_psk_callback.v_psk_cb_cls =
option->val.tls_psk_callback.v_psk_cb_cls;
+ settings->tls_psk_callback.v_psk_cb =
option->val.tls_psk_callback.v_psk_cb;
+ settings->tls_psk_callback.v_psk_cb_cls =
option->val.tls_psk_callback.v_psk_cb_cls;
continue;
case MHD_D_O_NO_ALPN:
- daemon->settings.no_alpn = option->val.no_alpn;
+ settings->no_alpn = option->val.no_alpn;
continue;
case MHD_D_O_DEFAULT_TIMEOUT:
- daemon->settings.default_timeout = option->val.default_timeout;
+ settings->default_timeout = option->val.default_timeout;
continue;
case MHD_D_O_GLOBAL_CONNECTION_LIMIT:
- daemon->settings.global_connection_limit =
option->val.global_connection_limit;
+ settings->global_connection_limit = option->val.global_connection_limit;
continue;
case MHD_D_O_PER_IP_LIMIT:
- daemon->settings.per_ip_limit = option->val.per_ip_limit;
+ settings->per_ip_limit = option->val.per_ip_limit;
continue;
case MHD_D_O_ACCEPT_POLICY:
- daemon->settings.accept_policy.v_apc = option->val.accept_policy.v_apc;
- daemon->settings.accept_policy.v_apc_cls =
option->val.accept_policy.v_apc_cls;
+ settings->accept_policy.v_apc = option->val.accept_policy.v_apc;
+ settings->accept_policy.v_apc_cls = option->val.accept_policy.v_apc_cls;
continue;
case MHD_D_O_PROTOCOL_STRICT_LEVEL:
- daemon->settings.protocol_strict_level.v_sl =
option->val.protocol_strict_level.v_sl;
- daemon->settings.protocol_strict_level.v_how =
option->val.protocol_strict_level.v_how;
+ settings->protocol_strict_level.v_sl =
option->val.protocol_strict_level.v_sl;
+ settings->protocol_strict_level.v_how =
option->val.protocol_strict_level.v_how;
continue;
case MHD_D_O_EARLY_URI_LOGGER:
- daemon->settings.early_uri_logger.v_cb =
option->val.early_uri_logger.v_cb;
- daemon->settings.early_uri_logger.v_cls =
option->val.early_uri_logger.v_cls;
+ settings->early_uri_logger.v_cb = option->val.early_uri_logger.v_cb;
+ settings->early_uri_logger.v_cls = option->val.early_uri_logger.v_cls;
continue;
case MHD_D_O_DISABLE_URI_QUERY_PLUS_AS_SPACE:
- daemon->settings.disable_uri_query_plus_as_space =
option->val.disable_uri_query_plus_as_space;
+ settings->disable_uri_query_plus_as_space =
option->val.disable_uri_query_plus_as_space;
continue;
case MHD_D_O_SUPPRESS_DATE_HEADER:
- daemon->settings.suppress_date_header = option->val.suppress_date_header;
+ settings->suppress_date_header = option->val.suppress_date_header;
continue;
case MHD_D_O_ENABLE_SHOUTCAST:
- daemon->settings.enable_shoutcast = option->val.enable_shoutcast;
+ settings->enable_shoutcast = option->val.enable_shoutcast;
continue;
case MHD_D_O_CONN_MEMORY_LIMIT:
- daemon->settings.conn_memory_limit = option->val.conn_memory_limit;
+ settings->conn_memory_limit = option->val.conn_memory_limit;
continue;
case MHD_D_O_LARGE_POOL_SIZE:
- daemon->settings.large_pool_size = option->val.large_pool_size;
+ settings->large_pool_size = option->val.large_pool_size;
continue;
case MHD_D_O_STACK_SIZE:
- daemon->settings.stack_size = option->val.stack_size;
+ settings->stack_size = option->val.stack_size;
continue;
case MHD_D_O_FD_NUMBER_LIMIT:
- daemon->settings.fd_number_limit = option->val.fd_number_limit;
+ settings->fd_number_limit = option->val.fd_number_limit;
continue;
case MHD_D_O_TURBO:
- daemon->settings.turbo = option->val.turbo;
+ settings->turbo = option->val.turbo;
continue;
case MHD_D_O_DISABLE_THREAD_SAFETY:
- daemon->settings.disable_thread_safety =
option->val.disable_thread_safety;
+ settings->disable_thread_safety = option->val.disable_thread_safety;
continue;
case MHD_D_O_DISALLOW_UPGRADE:
- daemon->settings.disallow_upgrade = option->val.disallow_upgrade;
+ settings->disallow_upgrade = option->val.disallow_upgrade;
continue;
case MHD_D_O_DISALLOW_SUSPEND_RESUME:
- daemon->settings.disallow_suspend_resume =
option->val.disallow_suspend_resume;
+ settings->disallow_suspend_resume = option->val.disallow_suspend_resume;
continue;
case MHD_D_O_DAEMON_READY_CALLBACK:
- daemon->settings.daemon_ready_callback.v_cb =
option->val.daemon_ready_callback.v_cb;
- daemon->settings.daemon_ready_callback.v_cb_cls =
option->val.daemon_ready_callback.v_cb_cls;
+ settings->daemon_ready_callback.v_cb =
option->val.daemon_ready_callback.v_cb;
+ settings->daemon_ready_callback.v_cb_cls =
option->val.daemon_ready_callback.v_cb_cls;
continue;
case MHD_D_O_NOTIFY_CONNECTION:
- daemon->settings.notify_connection.v_ncc =
option->val.notify_connection.v_ncc;
- daemon->settings.notify_connection.v_cls =
option->val.notify_connection.v_cls;
+ settings->notify_connection.v_ncc = option->val.notify_connection.v_ncc;
+ settings->notify_connection.v_cls = option->val.notify_connection.v_cls;
continue;
case MHD_D_O_NOTIFY_STREAM:
- daemon->settings.notify_stream.v_nsc = option->val.notify_stream.v_nsc;
- daemon->settings.notify_stream.v_cls = option->val.notify_stream.v_cls;
+ settings->notify_stream.v_nsc = option->val.notify_stream.v_nsc;
+ settings->notify_stream.v_cls = option->val.notify_stream.v_cls;
continue;
case MHD_D_O_RANDOM_ENTROPY:
- daemon->settings.random_entropy.v_buf_size =
option->val.random_entropy.v_buf_size;
- daemon->settings.random_entropy.v_buf = option->val.random_entropy.v_buf;
+ settings->random_entropy.v_buf_size =
option->val.random_entropy.v_buf_size;
+ settings->random_entropy.v_buf = option->val.random_entropy.v_buf;
continue;
case MHD_D_O_DAUTH_MAP_SIZE:
- daemon->settings.dauth_map_size = option->val.dauth_map_size;
+ settings->dauth_map_size = option->val.dauth_map_size;
continue;
case MHD_D_O_DAUTH_NONCE_BIND_TYPE:
- daemon->settings.dauth_nonce_bind_type =
option->val.dauth_nonce_bind_type;
+ settings->dauth_nonce_bind_type = option->val.dauth_nonce_bind_type;
continue;
case MHD_D_O_DAUTH_DEF_NONCE_TIMEOUT:
- daemon->settings.dauth_def_nonce_timeout =
option->val.dauth_def_nonce_timeout;
+ settings->dauth_def_nonce_timeout = option->val.dauth_def_nonce_timeout;
continue;
case MHD_D_O_DAUTH_DEF_MAX_NC:
- daemon->settings.dauth_def_max_nc = option->val.dauth_def_max_nc;
+ settings->dauth_def_max_nc = option->val.dauth_def_max_nc;
continue;
case MHD_D_O_SENTINEL:
default:
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 180/335: microhttpd2_portability.h: simplified macros for MHD_EXTERN_, (continued)
- [libmicrohttpd] 180/335: microhttpd2_portability.h: simplified macros for MHD_EXTERN_, gnunet, 2024/07/27
- [libmicrohttpd] 187/335: GENERATED: use proper includes in headers, gnunet, 2024/07/27
- [libmicrohttpd] 172/335: sys_base_types.h: new internal header, gnunet, 2024/07/27
- [libmicrohttpd] 192/335: GENERATED: check the state before using the options, gnunet, 2024/07/27
- [libmicrohttpd] 184/335: GENERATED: fixed License version, gnunet, 2024/07/27
- [libmicrohttpd] 179/335: microhttpd2_portability.h: lowered scope of included system headers, minor refactoring, gnunet, 2024/07/27
- [libmicrohttpd] 173/335: sys_bool_type.h: new internal header, gnunet, 2024/07/27
- [libmicrohttpd] 196/335: GENERATED: copy some temporal pointers, gnunet, 2024/07/27
- [libmicrohttpd] 175/335: mhd_sys_options.h: improved doxy, gnunet, 2024/07/27
- [libmicrohttpd] 181/335: microhttpd2_portability.h: added FIXME comments, gnunet, 2024/07/27
- [libmicrohttpd] 195/335: GENERATED: use pointer for the daemon settings,
gnunet <=
- [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, 2024/07/27