diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-04-07 22:48:52 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-04-07 22:48:52 +0200 |
commit | 575ae18234fa5f4d164457ab4f60616ad71b766a (patch) | |
tree | d22d3dcc59a32bbf9a80ca3fcb3941909e58adfc /src/settings.c | |
parent | 1945a09a7b665a0c6a3980caa64c16c369bd8016 (diff) | |
download | pianobar-575ae18234fa5f4d164457ab4f60616ad71b766a.tar.gz pianobar-575ae18234fa5f4d164457ab4f60616ad71b766a.tar.bz2 pianobar-575ae18234fa5f4d164457ab4f60616ad71b766a.zip |
Initial eventcmd work
More useful events should be added...
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 a0dabb5..786eb53 100644 --- a/src/settings.c +++ b/src/settings.c @@ -89,6 +89,7 @@ void BarSettingsDestroy (BarSettings_t *settings) { free (settings->lastfmUser); free (settings->lastfmPassword); free (settings->autostartStation); + free (settings->eventCmd); memset (settings, 0, sizeof (*settings)); } @@ -245,6 +246,8 @@ void BarSettingsRead (BarSettings_t *settings) { } } else if (strcmp ("autostart_station", key) == 0) { settings->autostartStation = strdup (val); + } else if (strcmp ("event_command", key) == 0) { + settings->eventCmd = strdup (val); } } |