Code

include ncursesw/ncurses.h if available
[ncmpc.git] / src / screen_list.h
1 /*
2  * (c) 2004 by Kalle Wallin <kaw@linux.se>
3  * Copyright (C) 2008 Max Kellermann <max@duempel.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.
9  *
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.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  *
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_KEYDEF_SCREEN
41 extern const struct screen_functions screen_keydef;
42 #endif
43 #ifdef ENABLE_LYRICS_SCREEN
44 extern const struct screen_functions screen_lyrics;
45 #endif
47 void
48 screen_list_init(WINDOW *w, unsigned cols, unsigned rows);
50 void
51 screen_list_exit(void);
53 void
54 screen_list_resize(unsigned cols, unsigned rows);
56 const char *
57 screen_get_name(const struct screen_functions *sf);
59 const struct screen_functions *
60 screen_lookup_name(const char *name);
62 int
63 screen_get_id(const char *name);
65 #endif