aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-25 21:20:06 +0200
committerMax Kellermann <max@duempel.org>2008-09-25 21:20:06 +0200
commit76270589b0b32e703c5d4854b859214215585e0a (patch)
treedf2184179e9af615894d3cd8636d7d3927431005 /src/screen.h
parentcee4c0450e477e6b683fb3db883227c2a7fa423f (diff)
downloadmpd-76270589b0b32e703c5d4854b859214215585e0a.tar.gz
mpd-76270589b0b32e703c5d4854b859214215585e0a.tar.xz
mpd-76270589b0b32e703c5d4854b859214215585e0a.zip
screen: moved code to screen_list.c
Move the hard-coded screen list and everything which works with this array to screen_list.c.
Diffstat (limited to 'src/screen.h')
-rw-r--r--src/screen.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/screen.h b/src/screen.h
index 3ba5541fb..7a8b0edb3 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -54,6 +54,22 @@ typedef void (*screen_update_fn_t)(mpdclient_t *c);
typedef int (*screen_cmd_fn_t)(struct screen *scr, mpdclient_t *c, command_t cmd);
typedef const char *(*screen_title_fn_t)(char *s, size_t size);
+extern const struct screen_functions screen_playlist;
+extern const struct screen_functions screen_browse;
+#ifdef ENABLE_ARTIST_SCREEN
+extern const struct screen_functions screen_artist;
+#endif
+extern const struct screen_functions screen_help;
+#ifdef ENABLE_SEARCH_SCREEN
+extern const struct screen_functions screen_search;
+#endif
+#ifdef ENABLE_KEYDEF_SCREEN
+extern const struct screen_functions screen_keydef;
+#endif
+#ifdef ENABLE_LYRICS_SCREEN
+extern const struct screen_functions screen_lyrics;
+#endif
+
typedef struct screen_functions {
screen_init_fn_t init;
screen_exit_fn_t exit;