diff options
author | Andreas Obergrusberger <tradiaz@yahoo.de> | 2006-08-04 08:48:26 +0000 |
---|---|---|
committer | Andreas Obergrusberger <tradiaz@yahoo.de> | 2006-08-04 08:48:26 +0000 |
commit | e2a6f80bc6c71cfe6a68f419b2561d6d32252a88 (patch) | |
tree | efbfdabfda29a9f097e7324d44689129d60b7b89 /src/conf.c | |
parent | 22f156f5f87705a9b8cda9958179939d8b3fbdc9 (diff) | |
download | mpd-e2a6f80bc6c71cfe6a68f419b2561d6d32252a88.tar.gz mpd-e2a6f80bc6c71cfe6a68f419b2561d6d32252a88.tar.xz mpd-e2a6f80bc6c71cfe6a68f419b2561d6d32252a88.zip |
the updated sources
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4543 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 18 |
1 files changed, 15 insertions, 3 deletions
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; } - - - |