aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_lyrics.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-18 22:09:23 +0100
committerMax Kellermann <max@duempel.org>2008-11-18 22:09:23 +0100
commit4eb970945e85a5f7c5ac768a44d5bca03c824b97 (patch)
tree519464793f14956adf9a2530b35e74aecc458272 /src/screen_lyrics.c
parente314afc17e7710e830013fad56b9840530b7ceba (diff)
downloadmpd-4eb970945e85a5f7c5ac768a44d5bca03c824b97.tar.gz
mpd-4eb970945e85a5f7c5ac768a44d5bca03c824b97.tar.xz
mpd-4eb970945e85a5f7c5ac768a44d5bca03c824b97.zip
screen: method cmd() returns bool
Return true/false instead of 1/0.
Diffstat (limited to '')
-rw-r--r--src/screen_lyrics.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index 30a89a163..9cffd5777 100644
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
@@ -303,12 +303,12 @@ lyrics_paint(void)
list_window_paint(lw, list_callback, NULL);
}
-static int
+static bool
lyrics_cmd(mpdclient_t *c, command_t cmd)
{
if (list_window_scroll_cmd(lw, current.lines->len, cmd)) {
lyrics_repaint();
- return 1;
+ return true;
}
switch(cmd) {
@@ -317,18 +317,18 @@ lyrics_cmd(mpdclient_t *c, command_t cmd)
screen_lyrics_abort();
screen_lyrics_clear();
}
- return 1;
+ return true;
case CMD_ADD:
if (current.loader == NULL && current.artist != NULL &&
current.title != NULL && store_lyr_hd() == 0)
screen_status_message (_("Lyrics saved!"));
- return 1;
+ return true;
case CMD_LYRICS_UPDATE:
if (c->song != NULL) {
screen_lyrics_load(c->song);
lyrics_repaint();
}
- return 1;
+ return true;
case CMD_LOCATE:
if (current.song != NULL) {
@@ -348,10 +348,10 @@ lyrics_cmd(mpdclient_t *c, command_t cmd)
/* center the row */
list_window_center(lw, current.lines->len, lw->selected);
lyrics_repaint();
- return 1;
+ return true;
}
- return 0;
+ return false;
}
const struct screen_functions screen_lyrics = {