diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-05-07 12:18:16 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-05-07 12:18:16 +0200 |
commit | e7596998032c586bd8baf02ad15c06ed15c67909 (patch) | |
tree | ef4b2024355555f7d88f93cbcdf17e184a8bf030 /src/settings.c | |
parent | 5608100cfdb98c127cbf834b6265b7b25dd20bef (diff) | |
download | pianobar-e7596998032c586bd8baf02ad15c06ed15c67909.tar.gz pianobar-e7596998032c586bd8baf02ad15c06ed15c67909.tar.bz2 pianobar-e7596998032c586bd8baf02ad15c06ed15c67909.zip |
Configureable RPC host
In case someone wants to use internal-tuner.pandora.com. See #243.
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index 19c07f5..0c0d31d 100644 --- a/src/settings.c +++ b/src/settings.c @@ -93,6 +93,7 @@ void BarSettingsDestroy (BarSettings_t *settings) { free (settings->npStationFormat); free (settings->listSongFormat); free (settings->fifo); + free (settings->rpcHost); free (settings->partnerUser); free (settings->partnerPassword); free (settings->device); @@ -188,6 +189,9 @@ void BarSettingsRead (BarSettings_t *settings) { settings->username = strdup (val); } else if (streq ("password", key)) { settings->password = strdup (val); + } else if (streq ("rpc_host", key)) { + free (settings->rpcHost); + settings->rpcHost = strdup (val); } else if (streq ("partner_user", key)) { free (settings->partnerUser); settings->partnerUser = strdup (val); |