Commit 6def8cf5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Move the main table of parameters to its own source code before

starting surgery on parameter defaults.
parent 0e9627dd
......@@ -61,6 +61,7 @@ varnishd_SOURCES = \
mgt/mgt_cli.c \
mgt/mgt_main.c \
mgt/mgt_param.c \
mgt/mgt_param_tbl.c \
mgt/mgt_param_bits.c \
mgt/mgt_pool.c \
mgt/mgt_sandbox.c \
......
This diff is collapsed.
......@@ -50,6 +50,17 @@ struct parspec {
const char *units;
};
tweak_t tweak_user;
tweak_t tweak_group;
tweak_t tweak_string;
tweak_t tweak_bool;
tweak_t tweak_waiter;
tweak_t tweak_bytes_u;
tweak_t tweak_listen_address;
tweak_t tweak_timeout;
tweak_t tweak_generic_double;
tweak_t tweak_poolparam;
int tweak_generic_uint(struct cli *cli,
volatile unsigned *dest, const char *arg, unsigned min, unsigned max);
void tweak_uint(struct cli *cli, const struct parspec *par, const char *arg);
......@@ -57,8 +68,20 @@ void tweak_timeout_double(struct cli *cli,
const struct parspec *par, const char *arg);
void tweak_bytes(struct cli *cli, const struct parspec *par, const char *arg);
/* mgt_param_tbl.c */
extern const struct parspec mgt_parspec[];
/* mgt_param_vsl.c */
extern const struct parspec VSL_parspec[];
/* mgt_pool.c */
extern const struct parspec WRK_parspec[];
#define MAGIC_INIT_STRING "\001"
#define MEMPOOL_TEXT \
"The three numbers are:\n" \
" min_pool -- minimum size of free pool.\n" \
" max_pool -- maximum size of free pool.\n" \
" max_age -- max age of free element.\n"
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment