Code

2f9cffdc4275f99c4ba959a22e749e0e540da11e
[ncmpc.git] / src / screen_list.h
1 /* ncmpc (Ncurses MPD Client)
2  * (c) 2004-2009 The Music Player Daemon Project
3  * Project homepage: http://musicpd.org
4  
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
20 #ifndef SCREEN_LIST_H
21 #define SCREEN_LIST_H
23 #include "config.h"
25 #ifdef HAVE_NCURSESW_NCURSES_H
26 #include <ncursesw/ncurses.h>
27 #else
28 #include <ncurses.h>
29 #endif
31 extern const struct screen_functions screen_playlist;
32 extern const struct screen_functions screen_browse;
33 #ifdef ENABLE_ARTIST_SCREEN
34 extern const struct screen_functions screen_artist;
35 #endif
36 extern const struct screen_functions screen_help;
37 #ifdef ENABLE_SEARCH_SCREEN
38 extern const struct screen_functions screen_search;
39 #endif
40 #ifdef ENABLE_SONG_SCREEN
41 extern const struct screen_functions screen_song;
42 #endif
43 #ifdef ENABLE_KEYDEF_SCREEN
44 extern const struct screen_functions screen_keydef;
45 #endif
46 #ifdef ENABLE_LYRICS_SCREEN
47 extern const struct screen_functions screen_lyrics;
48 #endif
49 #ifdef ENABLE_OUTPUTS_SCREEN
50 extern const struct screen_functions screen_outputs;
51 #endif
54 void
55 screen_list_init(WINDOW *w, unsigned cols, unsigned rows);
57 void
58 screen_list_exit(void);
60 void
61 screen_list_resize(unsigned cols, unsigned rows);
63 const char *
64 screen_get_name(const struct screen_functions *sf);
66 const struct screen_functions *
67 screen_lookup_name(const char *name);
69 int
70 screen_get_id(const char *name);
72 #endif