diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-10-11 18:09:46 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-10-21 20:55:29 +0200 |
commit | 962dee5cdd3b468318916d9c8862bc4c3653c402 (patch) | |
tree | 310896a514914d98e9bf2226aae8fe40f40c3050 /src/settings.c | |
parent | 5fd56271bfb4a407fffcd8633b54501e42415ead (diff) | |
download | pianobar-962dee5cdd3b468318916d9c8862bc4c3653c402.tar.gz pianobar-962dee5cdd3b468318916d9c8862bc4c3653c402.tar.bz2 pianobar-962dee5cdd3b468318916d9c8862bc4c3653c402.zip |
New setting: Read password from external command
Closes #314.
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index c8bcbfe..014c561 100644 --- a/src/settings.c +++ b/src/settings.c @@ -86,6 +86,7 @@ void BarSettingsDestroy (BarSettings_t *settings) { free (settings->proxy); free (settings->username); free (settings->password); + free (settings->passwordCmd); free (settings->autostartStation); free (settings->eventCmd); free (settings->loveIcon); @@ -189,6 +190,8 @@ void BarSettingsRead (BarSettings_t *settings) { settings->username = strdup (val); } else if (streq ("password", key)) { settings->password = strdup (val); + } else if (streq ("password_command", key)) { + settings->passwordCmd = strdup (val); } else if (streq ("rpc_host", key)) { free (settings->rpcHost); settings->rpcHost = strdup (val); |