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 @@ | |||
26 | #define obstack_chunk_alloc malloc | 26 | #define obstack_chunk_alloc malloc |
27 | #define obstack_chunk_free free | 27 | #define obstack_chunk_free free |
28 | #include <obstack.h> | 28 | #include <obstack.h> |
29 | #include <c-strcase.h> | ||
29 | #include <tagr.h> | 30 | #include <tagr.h> |
30 | 31 | ||
31 | #define ARG_UNUSED __attribute__ ((__unused__)) | 32 | #define ARG_UNUSED __attribute__ ((__unused__)) |
@@ -333,7 +334,7 @@ cb_facility (enum grecs_callback_command cmd, | |||
333 | str += 4; | 334 | str += 4; |
334 | 335 | ||
335 | for (i = 0; xlat_tab[i].name; i++) | 336 | for (i = 0; xlat_tab[i].name; i++) |
336 | if (strcasecmp (str, xlat_tab[i].name) == 0) | 337 | if (c_strcasecmp (str, xlat_tab[i].name) == 0) |
337 | { | 338 | { |
338 | *iptr = xlat_tab[i].facility; | 339 | *iptr = xlat_tab[i].facility; |
339 | return 0; | 340 | return 0; |
@@ -455,7 +456,11 @@ static struct grecs_keyword tagr_kw[] = { | |||
455 | grecs_type_string, &html_template }, | 456 | grecs_type_string, &html_template }, |
456 | { "pidfile", NULL, N_("Set pid file name"), | 457 | { "pidfile", NULL, N_("Set pid file name"), |
457 | grecs_type_string, &pidfile }, | 458 | grecs_type_string, &pidfile }, |
458 | 459 | { "hostname", NULL, N_("Set host name"), | |
460 | grecs_type_string, &hostname }, | ||
461 | { "udb-file", N_("name"), N_("Name of the user database file"), | ||
462 | grecs_type_string, &tagr_udb_name }, | ||
463 | |||
459 | { "server", N_("id: string"), N_("Configure server"), | 464 | { "server", N_("id: string"), N_("Configure server"), |
460 | grecs_type_section, NULL, 0, | 465 | grecs_type_section, NULL, 0, |
461 | cb_server, NULL, server_kw }, | 466 | cb_server, NULL, server_kw }, |
@@ -470,6 +475,17 @@ static struct grecs_keyword tagr_kw[] = { | |||
470 | { "log", NULL, N_("Configure logging"), | 475 | { "log", NULL, N_("Configure logging"), |
471 | grecs_type_section, NULL, 0, | 476 | grecs_type_section, NULL, 0, |
472 | NULL, NULL, log_kw }, | 477 | NULL, NULL, log_kw }, |
478 | |||
479 | { "lock-count", NULL, | ||
480 | N_("Set maximum number of attempts to acquire the lock on a database"), | ||
481 | grecs_type_uint, &lock_retry_count_option }, | ||
482 | { "lock-timeout", N_("seconds"), | ||
483 | N_("Set the time span between the two locking attempts"), | ||
484 | grecs_type_uint, &lock_retry_timeout_option }, | ||
485 | |||
486 | { "idle-timeout", N_("seconds"), | ||
487 | N_("Idle timeout for stream connections"), | ||
488 | grecs_type_uint, &stream_idle_timeout }, | ||
473 | 489 | ||
474 | { "rate-units", NULL, N_("Name of rate units"), | 490 | { "rate-units", NULL, N_("Name of rate units"), |
475 | grecs_type_string, &rate_unit }, | 491 | grecs_type_string, &rate_unit }, |
@@ -512,8 +528,7 @@ static struct grecs_keyword tagr_kw[] = { | |||
512 | grecs_type_int, color_in_max, 0, cb_color }, | 528 | grecs_type_int, color_in_max, 0, cb_color }, |
513 | { "color-out-max", NULL, N_("Not implemented") /* FIXME */, | 529 | { "color-out-max", NULL, N_("Not implemented") /* FIXME */, |
514 | grecs_type_int, color_out_max, 0, cb_color }, | 530 | grecs_type_int, color_out_max, 0, cb_color }, |
515 | 531 | ||
516 | /* FIXME */ | ||
517 | { NULL } | 532 | { NULL } |
518 | }; | 533 | }; |
519 | 534 | ||