summaryrefslogtreecommitdiff
path: root/src/settings.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-02-16 15:11:36 +0100
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-02-16 15:11:36 +0100
commit152c67bb38e71c1b189774beac07008cbc4d1631 (patch)
tree46634617610f2562848a1e1b289c081d80526ff6 /src/settings.c
parentcc9fabcf9958d38fcfb61c038ee0770cd3ec61a8 (diff)
downloadpianobar-windows-152c67bb38e71c1b189774beac07008cbc4d1631.tar.gz
pianobar-windows-152c67bb38e71c1b189774beac07008cbc4d1631.tar.bz2
pianobar-windows-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.c3
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);
}
}