master-settings.c revision 0469ed17dafcc56589ce00960a23f4f06817dfb5
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen/* Copyright (C) 2002 Timo Sirainen */
4e21cef121b8ad20439ccbcb4e9072c208f08611Timo Sirainen { type, #name, offsetof(struct settings, name) }
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen /* general */
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen { type, #name, offsetof(struct auth_settings, name) }
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainenstatic struct setting_def auth_setting_defs[] = {
42061dd44f742de25d0a52ed1ef766a56df421f1Timo Sirainen { type, #name, offsetof(struct socket_settings, name) }
42061dd44f742de25d0a52ed1ef766a56df421f1Timo Sirainenstatic struct setting_def socket_setting_defs[] = {
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen { type, #name, offsetof(struct auth_socket_settings, name) }
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainenstatic struct setting_def auth_socket_setting_defs[] = {
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen { type, #name, offsetof(struct auth_passdb_settings, name) }
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainenstatic struct setting_def auth_passdb_setting_defs[] = {
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen { type, #name, offsetof(struct auth_userdb_settings, name) }
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainenstatic struct setting_def auth_userdb_setting_defs[] = {
e361b5386c77ee25685b5ad2bd2519a077dea882Timo Sirainen { type, #name, offsetof(struct namespace_settings, name) }
8759adc67109b5a12a7af3ed717c7040622a0a04Timo Sirainenstatic struct setting_def namespace_setting_defs[] = {
121221dd2970a6f5ec601abb3b1c505c238e0b60Timo Sirainen MEMBER(log_timestamp) DEFAULT_FAILURE_STAMP_FORMAT,
121221dd2970a6f5ec601abb3b1c505c238e0b60Timo Sirainen /* general */
#ifdef MMAP_CONFLICTS_WRITE
return FALSE;
return FALSE;
return TRUE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
const char *name;
name);
return FALSE;
return TRUE;
char *str, *p;
if (p == NULL)
return str;
return FALSE;
return FALSE;
return TRUE;
return TRUE;
return FALSE;
const char *dir;
return FALSE;
return FALSE;
#ifdef HAVE_MODULES
return FALSE;
return FALSE;
dir);
return FALSE;
#ifdef HAVE_SSL
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
static struct auth_settings *
return auth;
static struct auth_settings *
const char **errormsg)
return NULL;
return NULL;
static struct auth_passdb_settings *
return as;
static struct auth_userdb_settings *
return as;
static struct auth_socket_settings *
return as;
static struct auth_socket_settings *
const char **errormsg)
return NULL;
return NULL;
static struct namespace_settings *
return ns;
static struct namespace_settings *
const char **errormsg)
return NULL;
void *context)
const char *error;
return NULL;
case SETTINGS_TYPE_ROOT:
case SETTINGS_TYPE_SERVER:
return NULL;
return error;
case SETTINGS_TYPE_AUTH:
case SETTINGS_TYPE_NAMESPACE:
case SETTINGS_TYPE_SOCKET:
i_unreached();
static struct server_settings *
return server;
const char **errormsg)
return TRUE;
return FALSE;
return TRUE;
return FALSE;
return FALSE;
return TRUE;
return FALSE;
return TRUE;
return TRUE;
return TRUE;
return TRUE;
return FALSE;
errormsg);
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
if (!nochecks) {
return FALSE;
return FALSE;
return TRUE;
void master_settings_init(void)
void master_settings_deinit(void)