summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h
index b9617c4..954e102 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -24,6 +24,13 @@ THE SOFTWARE.
#define _SETTINGS_H
#include <curl/curl.h>
+#include <piano.h>
+
+#include "player.h"
+
+#define BAR_KS_ARGS PianoHandle_t *ph, struct aacPlayer *player, \
+ struct BarSettings *settings, PianoSong_t **curSong, \
+ PianoStation_t **curStation, char *doQuit
struct BarSettings {
char *username;
@@ -35,9 +42,17 @@ struct BarSettings {
unsigned char lastfmScrobblePercent;
char enableScrobbling;
char disableSecureLogin;
+ struct BarKeyShortcut {
+ char key;
+ void (*cmd) (BAR_KS_ARGS);
+ char *description;
+ char *configKey;
+ struct BarKeyShortcut *next;
+ } *keys;
};
typedef struct BarSettings BarSettings_t;
+typedef struct BarKeyShortcut BarKeyShortcut_t;
void BarSettingsInit (BarSettings_t *settings);
void BarSettingsDestroy (BarSettings_t *settings);