diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-12-08 14:41:53 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2005-12-08 14:41:53 +0100 |
commit | 1ee6c18cfb5eb03f33a5938b37e357dd3fd2c164 (patch) | |
tree | 6b6806ac2c13634c7a7c5419e95a0c8bd1fe6884 /conf.c | |
parent | d636233a518fbe46264230866d4b8ea463f1474e (diff) |
Add abstraction layer for storage
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -49,6 +49,7 @@ conf_t *conf_load( int argc, char *argv[] ) conf->port = 6667; conf->nofork = 0; conf->verbose = 0; + conf->storage = "text"; conf->runmode = RUNMODE_INETD; conf->authmode = AUTHMODE_OPEN; conf->password = NULL; @@ -197,6 +198,11 @@ static int conf_loadini( conf_t *conf, char *file ) g_free( conf->motdfile ); conf->motdfile = g_strdup( ini->value ); } + else if( g_strcasecmp( ini->key, "storage" ) == 0 ) + { + g_free( conf->storage ); + conf->storage = g_strdup( ini->value ); + } else if( g_strcasecmp( ini->key, "pinginterval" ) == 0 ) { if( sscanf( ini->value, "%d", &i ) != 1 ) |