diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-02-16 15:11:36 +0100 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-02-16 15:11:36 +0100 |
commit | 152c67bb38e71c1b189774beac07008cbc4d1631 (patch) | |
tree | 46634617610f2562848a1e1b289c081d80526ff6 /src/settings.c | |
parent | cc9fabcf9958d38fcfb61c038ee0770cd3ec61a8 (diff) | |
download | pianobar-152c67bb38e71c1b189774beac07008cbc4d1631.tar.gz pianobar-152c67bb38e71c1b189774beac07008cbc4d1631.tar.bz2 pianobar-152c67bb38e71c1b189774beac07008cbc4d1631.zip |
Autostart station setting added
You may define a station that is played when starting pianobar now.
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 63d5937..bc471f0 100644 --- a/src/settings.c +++ b/src/settings.c @@ -82,6 +82,7 @@ void BarSettingsDestroy (BarSettings_t *settings) { free (settings->password); free (settings->lastfmUser); free (settings->lastfmPassword); + free (settings->autostartStation); memset (settings, 0, sizeof (*settings)); } @@ -229,6 +230,8 @@ void BarSettingsRead (BarSettings_t *settings) { } else if (strcmp (val, "mp3") == 0) { settings->audioFormat = PIANO_AF_MP3; } + } else if (strcmp ("autostart_station", key) == 0) { + settings->autostartStation = strdup (val); } } |