diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-03-04 17:20:39 +0100 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-03-04 17:20:39 +0100 |
commit | 2e360ba0b308b233f94f3a4bb12e25d3d447aa07 (patch) | |
tree | 37a18be07394d63cd3113eceefddb34e3cbb0a6d /src/ui.h | |
parent | a17b0d5474bfd560ba5fea383b39cfeb1918dd72 (diff) | |
download | pianobar-2e360ba0b308b233f94f3a4bb12e25d3d447aa07.tar.gz pianobar-2e360ba0b308b233f94f3a4bb12e25d3d447aa07.tar.bz2 pianobar-2e360ba0b308b233f94f3a4bb12e25d3d447aa07.zip |
Ui improvements
printf wrapper introduced, hopefully cleaned up ui
Diffstat (limited to 'src/ui.h')
-rw-r--r-- | src/ui.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -26,12 +26,17 @@ THE SOFTWARE. #include <piano.h> -inline void BarUiMsg (const char *msg); +typedef enum {MSG_NONE, MSG_INFO, MSG_PLAYING, MSG_TIME, MSG_ERR, + MSG_QUESTION, MSG_LIST} uiMsg_t; + +inline void BarUiMsg (uiMsg_t type, const char *format, ...); inline PianoReturn_t BarUiPrintPianoStatus (PianoReturn_t ret); PianoStation_t *BarUiSelectStation (PianoHandle_t *ph, const char *prompt); PianoSong_t *BarUiSelectSong (PianoSong_t *startSong); PianoArtist_t *BarUiSelectArtist (PianoArtist_t *startArtist); char *BarUiSelectMusicId (const PianoHandle_t *ph); void BarStationFromGenre (PianoHandle_t *ph); +inline void BarUiPrintStation (PianoStation_t *); +inline void BarUiPrintSong (PianoSong_t *, PianoStation_t *); #endif /* _UI_H */ |