diff options
author | Pierre Zurek <pierrezurek@gmail.com> | 2012-11-02 13:58:39 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-11-04 12:21:33 +0100 |
commit | cdb3ba3b567099236ebc1998b84ec0d7035d8cc8 (patch) | |
tree | 96b6c20d6d7c063b580dd4c75ac3fd1992b05094 /src/settings.c | |
parent | dd6c620b53272e2eb4b091a835cd250309f04cad (diff) | |
download | pianobar-cdb3ba3b567099236ebc1998b84ec0d7035d8cc8.tar.gz pianobar-cdb3ba3b567099236ebc1998b84ec0d7035d8cc8.tar.bz2 pianobar-cdb3ba3b567099236ebc1998b84ec0d7035d8cc8.zip |
New setting: Read RPC TLS port
Useful for tuner-beta.savagebeast.com:8443. Closes #319.
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index 014c561..68d2ef9 100644 --- a/src/settings.c +++ b/src/settings.c @@ -97,6 +97,7 @@ void BarSettingsDestroy (BarSettings_t *settings) { free (settings->listSongFormat); free (settings->fifo); free (settings->rpcHost); + free (settings->rpcTlsPort); free (settings->partnerUser); free (settings->partnerPassword); free (settings->device); @@ -132,6 +133,7 @@ void BarSettingsRead (BarSettings_t *settings) { settings->npStationFormat = strdup ("Station \"%n\" (%i)"); settings->listSongFormat = strdup ("%i) %a - %t%r"); settings->rpcHost = strdup (PIANO_RPC_HOST); + settings->rpcTlsPort = NULL; settings->partnerUser = strdup ("android"); settings->partnerPassword = strdup ("AC7IBG09A3DTSYM4R41UJWL07VLN8JI7"); settings->device = strdup ("android-generic"); @@ -195,6 +197,9 @@ void BarSettingsRead (BarSettings_t *settings) { } else if (streq ("rpc_host", key)) { free (settings->rpcHost); settings->rpcHost = strdup (val); + } else if (streq ("rpc_tls_port", key)) { + free (settings->rpcTlsPort); + settings->rpcTlsPort = strdup (val); } else if (streq ("partner_user", key)) { free (settings->partnerUser); settings->partnerUser = strdup (val); |