diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-07-30 17:45:36 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-07-30 17:45:36 +0200 |
commit | d3046d174245920c01f2e19fa43f2cccdba9540b (patch) | |
tree | d2893ab841490e9e88f21ec6653e227a7b80c395 /src/settings.h | |
parent | df4022ccda870f2a1b0e4e254f4a298da48fc4f9 (diff) | |
download | pianobar-d3046d174245920c01f2e19fa43f2cccdba9540b.tar.gz pianobar-d3046d174245920c01f2e19fa43f2cccdba9540b.tar.bz2 pianobar-d3046d174245920c01f2e19fa43f2cccdba9540b.zip |
Feature: Custom station sorting
Sort stations by name and/or isquickmix.
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/settings.h b/src/settings.h index 42443d7..2505321 100644 --- a/src/settings.h +++ b/src/settings.h @@ -64,16 +64,27 @@ typedef enum { BAR_KS_COUNT = 22, } BarKeyShortcutId_t; +typedef enum { + BAR_SORT_NAME_AZ = 0, + BAR_SORT_NAME_ZA = 1, + BAR_SORT_QUICKMIX_01_NAME_AZ = 2, + BAR_SORT_QUICKMIX_01_NAME_ZA = 3, + BAR_SORT_QUICKMIX_10_NAME_AZ = 4, + BAR_SORT_QUICKMIX_10_NAME_ZA = 5, + BAR_SORT_COUNT = 6, +} BarStationSorting_t; + typedef struct { + unsigned int history; + BarStationSorting_t sortOrder; + PianoAudioFormat_t audioFormat; char *username; char *password; char *controlProxy; /* non-american listeners need this */ char *proxy; char keys[BAR_KS_COUNT]; - PianoAudioFormat_t audioFormat; char *autostartStation; char *eventCmd; - unsigned int history; } BarSettings_t; typedef void (*BarKeyShortcutFunc_t) (BAR_KS_ARGS); |