diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-01-06 16:25:40 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-02-02 16:48:53 +0100 |
commit | ce8503f859345990a14be90bf89dadf7f73d7613 (patch) | |
tree | 6a2c7b572ba76bdbda3bbe4bff21f484e848f0e5 /src/ui.h | |
parent | 58398e4b2a9666a94aacced30453c1fc46b4a2e8 (diff) | |
download | pianobar-ce8503f859345990a14be90bf89dadf7f73d7613.tar.gz pianobar-ce8503f859345990a14be90bf89dadf7f73d7613.tar.bz2 pianobar-ce8503f859345990a14be90bf89dadf7f73d7613.zip |
BarReadline rewrite
Doesn't use c streams any more, allows multiplexing of fifo/stdin in all
situations.
Diffstat (limited to 'src/ui.h')
-rw-r--r-- | src/ui.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,5 +1,5 @@ /* -Copyright (c) 2008-2010 +Copyright (c) 2008-2011 Lars-Dominik Braun <lars@6xq.net> Permission is hereby granted, free of charge, to any person obtaining a copy @@ -30,6 +30,7 @@ THE SOFTWARE. #include "settings.h" #include "player.h" #include "main.h" +#include "ui_readline.h" typedef enum {MSG_NONE, MSG_INFO, MSG_PLAYING, MSG_TIME, MSG_ERR, MSG_QUESTION, MSG_LIST} uiMsg_t; @@ -37,11 +38,12 @@ typedef enum {MSG_NONE, MSG_INFO, MSG_PLAYING, MSG_TIME, MSG_ERR, void BarUiMsg (uiMsg_t type, const char *format, ...); PianoReturn_t BarUiPrintPianoStatus (PianoReturn_t ret); PianoStation_t *BarUiSelectStation (PianoHandle_t *, const char *, - BarStationSorting_t, FILE *); -PianoSong_t *BarUiSelectSong (const BarSettings_t *, PianoSong_t *, FILE *); -PianoArtist_t *BarUiSelectArtist (PianoArtist_t *startArtist, FILE *curFd); -char *BarUiSelectMusicId (BarApp_t *, FILE *, char *); -void BarStationFromGenre (BarApp_t *, FILE *); + BarStationSorting_t, BarReadlineFds_t *); +PianoSong_t *BarUiSelectSong (const BarSettings_t *, PianoSong_t *, + BarReadlineFds_t *); +PianoArtist_t *BarUiSelectArtist (PianoArtist_t *, BarReadlineFds_t *); +char *BarUiSelectMusicId (BarApp_t *, char *); +void BarStationFromGenre (BarApp_t *); void BarUiPrintStation (PianoStation_t *); void BarUiPrintSong (const BarSettings_t *, const PianoSong_t *, const PianoStation_t *); |