From d3046d174245920c01f2e19fa43f2cccdba9540b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 30 Jul 2010 17:45:36 +0200 Subject: Feature: Custom station sorting Sort stations by name and/or isquickmix. --- src/settings.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/settings.h') 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); -- cgit v1.2.3