diff options
Diffstat (limited to 'src/readconfig.c')
-rw-r--r-- | src/readconfig.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/readconfig.c b/src/readconfig.c index e75cae4..a514691 100644 --- a/src/readconfig.c +++ b/src/readconfig.c @@ -26,6 +26,7 @@ #define obstack_chunk_alloc malloc #define obstack_chunk_free free #include <obstack.h> +#include <c-strcase.h> #include <tagr.h> #define ARG_UNUSED __attribute__ ((__unused__)) @@ -333,7 +334,7 @@ cb_facility (enum grecs_callback_command cmd, str += 4; for (i = 0; xlat_tab[i].name; i++) - if (strcasecmp (str, xlat_tab[i].name) == 0) + if (c_strcasecmp (str, xlat_tab[i].name) == 0) { *iptr = xlat_tab[i].facility; return 0; @@ -455,7 +456,11 @@ static struct grecs_keyword tagr_kw[] = { grecs_type_string, &html_template }, { "pidfile", NULL, N_("Set pid file name"), grecs_type_string, &pidfile }, - + { "hostname", NULL, N_("Set host name"), + grecs_type_string, &hostname }, + { "udb-file", N_("name"), N_("Name of the user database file"), + grecs_type_string, &tagr_udb_name }, + { "server", N_("id: string"), N_("Configure server"), grecs_type_section, NULL, 0, cb_server, NULL, server_kw }, @@ -470,6 +475,17 @@ static struct grecs_keyword tagr_kw[] = { { "log", NULL, N_("Configure logging"), grecs_type_section, NULL, 0, NULL, NULL, log_kw }, + + { "lock-count", NULL, + N_("Set maximum number of attempts to acquire the lock on a database"), + grecs_type_uint, &lock_retry_count_option }, + { "lock-timeout", N_("seconds"), + N_("Set the time span between the two locking attempts"), + grecs_type_uint, &lock_retry_timeout_option }, + + { "idle-timeout", N_("seconds"), + N_("Idle timeout for stream connections"), + grecs_type_uint, &stream_idle_timeout }, { "rate-units", NULL, N_("Name of rate units"), grecs_type_string, &rate_unit }, @@ -512,8 +528,7 @@ static struct grecs_keyword tagr_kw[] = { grecs_type_int, color_in_max, 0, cb_color }, { "color-out-max", NULL, N_("Not implemented") /* FIXME */, grecs_type_int, color_out_max, 0, cb_color }, - - /* FIXME */ + { NULL } }; |