diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-11-18 20:15:26 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 18:08:51 -0400 |
commit | 2495177131c3b77f1df9ab5efbf1686ad70ab5b0 (patch) | |
tree | 0afa769190e1af00e5425abe169445be7860cc59 /src/gw_backend.h | |
parent | 9339b73e0a68438d21ddff89b71c48d5d6081550 (diff) | |
download | lighttpd-git-2495177131c3b77f1df9ab5efbf1686ad70ab5b0.tar.gz |
[core] gw_backend config_plugin_values_init_block
switch gw_backend.c to use config_plugin_values_init_block()
Diffstat (limited to 'src/gw_backend.h')
-rw-r--r-- | src/gw_backend.h | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/src/gw_backend.h b/src/gw_backend.h index d5909c86..cb17b236 100644 --- a/src/gw_backend.h +++ b/src/gw_backend.h @@ -48,7 +48,7 @@ typedef struct gw_proc { typedef struct { /* the key that is used to reference this value */ - buffer *id; + const buffer *id; /* list of processes handling this extension * sorted by lowest load @@ -116,7 +116,7 @@ typedef struct { * "localhost" (INADDR_LOOPBACK) is assumed. * */ - buffer *host; + const buffer *host; unsigned short port; unsigned short family; /* sa_family_t */ @@ -128,7 +128,7 @@ typedef struct { * - more control (on locally) * - more speed (no extra overhead) */ - buffer *unixsocket; + const buffer *unixsocket; /* if socket is local we can start the gw process ourself * @@ -137,16 +137,16 @@ typedef struct { * check min_procs and max_procs for the number * of process to start up */ - buffer *bin_path; + const buffer *bin_path; /* bin-path is set bin-environment is taken to * create the environement before starting the * FastCGI process * */ - array *bin_env; + const array *bin_env; - array *bin_env_copy; + const array *bin_env_copy; /* * docroot-translation between URL->phys and the @@ -157,7 +157,7 @@ typedef struct { * - chroot if local * */ - buffer *docroot; + const buffer *docroot; /* * check_local tells you if the phys file is stat()ed @@ -193,13 +193,13 @@ typedef struct { * */ unsigned short xsendfile_allow; - array *xsendfile_docroot; + const array *xsendfile_docroot; int32_t load; uint32_t max_id; /* corresponds most of the time to num_procs */ - buffer *strip_request_uri; + const buffer *strip_request_uri; unsigned short tcp_fin_propagate; unsigned short kill_signal; /* we need a setting for this as libfcgi @@ -327,11 +327,21 @@ typedef struct gw_handler_ctx { } gw_handler_ctx; +__attribute_cold__ void * gw_init(void); + +__attribute_cold__ void gw_plugin_config_free(gw_plugin_config *s); + +__attribute_cold__ handler_t gw_free(server *srv, void *p_d); + +__attribute_cold__ int gw_set_defaults_backend(server *srv, gw_plugin_data *p, const array *a, gw_plugin_config *s, int sh_exec, const char *cpkkey); + +__attribute_cold__ int gw_get_defaults_balance(server *srv, const buffer *b); + handler_t gw_check_extension(server *srv, connection *con, gw_plugin_data *p, int uri_path_handler, size_t hctx_sz); handler_t gw_connection_reset(server *srv, connection *con, void *p_d); handler_t gw_handle_subrequest(server *srv, connection *con, void *p_d); |