master-settings.c revision 121b017684fbe76e9ea270afcae16fc2f22a347a
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen/* Copyright (c) 2005-2012 Dovecot authors, see the included COPYING file */
d1414c09cf0d58ac983054e2f4e1a1f329272dcfTimo Sirainenstatic bool master_settings_verify(void *_set, pool_t pool,
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen const char **error_r);
d1414c09cf0d58ac983054e2f4e1a1f329272dcfTimo Sirainenextern const struct setting_parser_info service_setting_parser_info;
8eea67470c1bd8562a62e7445d930bb2079b1a43Timo Sirainen { type, #name, offsetof(struct file_listener_settings, name), NULL }
64e244defe74f513ce94f33d000a048ddbe2ea23Timo Sirainenstatic const struct setting_define file_listener_setting_defines[] = {
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainenstatic const struct file_listener_settings file_listener_default_settings = {
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainenstatic const struct setting_parser_info file_listener_setting_parser_info = {
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen .type_offset = offsetof(struct file_listener_settings, path),
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen .struct_size = sizeof(struct file_listener_settings),
05817ffe09295892e1aa5c4a7f91d060e249563cTimo Sirainen { type, #name, offsetof(struct inet_listener_settings, name), NULL }
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainenstatic const struct setting_define inet_listener_setting_defines[] = {
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainenstatic const struct inet_listener_settings inet_listener_default_settings = {
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainenstatic const struct setting_parser_info inet_listener_setting_parser_info = {
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen .type_offset = offsetof(struct inet_listener_settings, name),
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen .struct_size = sizeof(struct inet_listener_settings),
66c3f635f2f33905af527d49b27f95322aa7dfa7Timo Sirainen { type, #name, offsetof(struct service_settings, name), NULL }
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo Sirainen { SET_DEFLIST, name, offsetof(struct service_settings, field), defines }
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo Sirainen { SET_DEFLIST_UNIQUE, name, offsetof(struct service_settings, field), defines }
.process_min_avail = 0,
.process_limit = 0,
.client_limit = 0,
.service_count = 0,
.idle_kill = 0,
#ifdef HAVE_SYSTEMD
#ifdef DEBUG
.last_valid_uid = 0,
.last_valid_gid = 0,
#ifndef CONFIG_BINARY
sizeof(struct service_settings *) } },
if (!array_is_created(l))
base_dir_len) == 0 &&
const char *str;
if (!array_is_created(l))
const char **error_r)
return FALSE;
return TRUE;
return TRUE;
return FALSE;
#ifdef CONFIG_BINARY
static const struct service_settings *
return *setp;
return NULL;
const char *const *strings;
#ifdef CONFIG_BINARY
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
for (i = 0; i < count; i++) {
return FALSE;
return FALSE;
return FALSE;
return FALSE;
for (i = 0; i < count; i++) {
return FALSE;
return FALSE;
if (process_limit == 0)
return FALSE;
return FALSE;
#ifdef CONFIG_BINARY
return FALSE;
#ifndef CONFIG_BINARY
strings[i]);
return FALSE;
return TRUE;
const char *error;
return cores;
const char *dir)
return TRUE;
return FALSE;
unsigned int prefix_len;