diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-09-14 21:38:33 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-09-22 16:39:05 +0200 |
commit | 1c1628706034eac85b062a028bacc85bc18efc22 (patch) | |
tree | 77b748cce19e2741e3ddd9c763b60f73512709cb /src/settings.h | |
parent | fe1ffbd7257b4c0dd43a825912bcd65732df6db2 (diff) | |
download | pianobar-1c1628706034eac85b062a028bacc85bc18efc22.tar.gz pianobar-1c1628706034eac85b062a028bacc85bc18efc22.tar.bz2 pianobar-1c1628706034eac85b062a028bacc85bc18efc22.zip |
Save station and volume to statefile
… and restore both on startup. To disable run `ln -sv /dev/null
~/.config/pianobar/state`. Setting an invalid autostart_station in the
config file prevents automatic station selection on startup.
Closes #305.
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h index 488a2fb..0f4c6de 100644 --- a/src/settings.h +++ b/src/settings.h @@ -105,9 +105,12 @@ typedef struct { BarMsgFormatStr_t msgFormat[MSG_COUNT]; } BarSettings_t; +#include <piano.h> + void BarSettingsInit (BarSettings_t *); void BarSettingsDestroy (BarSettings_t *); void BarSettingsRead (BarSettings_t *); +void BarSettingsWrite (PianoStation_t *, BarSettings_t *); void BarGetXdgConfigDir (const char *, char *, size_t); #endif /* _SETTINGS_H */ |