aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-25 21:20:10 +0200
committerMax Kellermann <max@duempel.org>2008-09-25 21:20:10 +0200
commit3809e2f13bb6642d3a874c24df7d854aa0aea8b5 (patch)
tree3acd44e438c1403bea51e0009d4c6c41a7a35f7d /src/screen.h
parent76270589b0b32e703c5d4854b859214215585e0a (diff)
downloadmpd-3809e2f13bb6642d3a874c24df7d854aa0aea8b5.tar.gz
mpd-3809e2f13bb6642d3a874c24df7d854aa0aea8b5.tar.xz
mpd-3809e2f13bb6642d3a874c24df7d854aa0aea8b5.zip
screen: replaced get_cur_mode_id() with screen_is_visible()
Screen code shouldn't know anything about the screen ids (which will be eliminated completely later). Instead of comparing ids, compare the screen_functions pointer.
Diffstat (limited to '')
-rw-r--r--src/screen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen.h b/src/screen.h
index 7a8b0edb3..dc7e239ea 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -94,8 +94,9 @@ void screen_idle(mpdclient_t *c);
void screen_cmd(mpdclient_t *c, command_t cmd);
gint screen_get_id(const char *name);
+gboolean
+screen_is_visible(const struct screen_functions *sf);
-gint get_cur_mode_id(void);
int screen_get_mouse_event(mpdclient_t *c, unsigned long *bstate, int *row);
#endif