From e2a6f80bc6c71cfe6a68f419b2561d6d32252a88 Mon Sep 17 00:00:00 2001 From: Andreas Obergrusberger Date: Fri, 4 Aug 2006 08:48:26 +0000 Subject: the updated sources git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4543 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/conf.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/conf.c') diff --git a/src/conf.c b/src/conf.c index f2c21ea05..2074a2638 100644 --- a/src/conf.c +++ b/src/conf.c @@ -65,6 +65,9 @@ #define CONF_SEEK_TIME "seek-time" #define CONF_SCREEN_LIST "screen-list" #define CONF_TIMEDISPLAY_TYPE "timedisplay-type" +#define CONF_HOST "host" +#define CONF_PORT "port" +#define CONF_LYRICS_TIMEOUT "lyrics-timeout" typedef enum { KEY_PARSER_UNKNOWN, @@ -559,6 +562,18 @@ read_rc_file(char *filename, options_t *options) D("\n"); #endif } + else if( !strcasecmp(CONF_HOST, name)) + { + options->host = get_format(value); + } + else if( !strcasecmp(CONF_PORT, name)) + { + options->port = atoi(get_format(value)); + } + else if( !strcasecmp(CONF_LYRICS_TIMEOUT, name)) + { + options->lyrics_timeout = atoi(get_format(value)); + } else { match_found = 0; @@ -681,6 +696,3 @@ read_configuration(options_t *options) return 0; } - - - -- cgit v1.2.3