diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-04-22 16:52:52 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-05-18 15:32:02 +0200 |
commit | 41f1a727c1b7ebbabf84652bab20361ee7631642 (patch) | |
tree | 44c6cc8c836c5fd91078ec6d991cd9220acdfde2 /src/ui.h | |
parent | e8c314c615092555d5fe79119c176ec0413caf3d (diff) | |
download | pianobar-41f1a727c1b7ebbabf84652bab20361ee7631642.tar.gz pianobar-41f1a727c1b7ebbabf84652bab20361ee7631642.tar.bz2 pianobar-41f1a727c1b7ebbabf84652bab20361ee7631642.zip |
Configureable format strings
Closes #88
Diffstat (limited to 'src/ui.h')
-rw-r--r-- | src/ui.h | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -31,20 +31,16 @@ THE SOFTWARE. #include "player.h" #include "main.h" #include "ui_readline.h" +#include "ui_types.h" -typedef enum {MSG_NONE, MSG_INFO, MSG_PLAYING, MSG_TIME, MSG_ERR, - MSG_QUESTION, MSG_LIST} uiMsg_t; - -void BarUiMsg (uiMsg_t type, const char *format, ...); -PianoReturn_t BarUiPrintPianoStatus (PianoReturn_t ret); -PianoStation_t *BarUiSelectStation (PianoHandle_t *, const char *, - BarStationSorting_t, BarReadlineFds_t *); +void BarUiMsg (const BarSettings_t *, const BarUiMsg_t, const char *, ...); +PianoStation_t *BarUiSelectStation (BarApp_t *, const char *); PianoSong_t *BarUiSelectSong (const BarSettings_t *, PianoSong_t *, BarReadlineFds_t *); -PianoArtist_t *BarUiSelectArtist (PianoArtist_t *, BarReadlineFds_t *); +PianoArtist_t *BarUiSelectArtist (BarApp_t *, PianoArtist_t *); char *BarUiSelectMusicId (BarApp_t *, char *, const char *); void BarStationFromGenre (BarApp_t *); -void BarUiPrintStation (PianoStation_t *); +void BarUiPrintStation (const BarSettings_t *, PianoStation_t *); void BarUiPrintSong (const BarSettings_t *, const PianoSong_t *, const PianoStation_t *); size_t BarUiListSongs (const BarSettings_t *, const PianoSong_t *, const char *); |