Code

configure.ac: define ENABLE_x_SCREEN instead of DISABLE_x_SCREEN
[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 #include <ncurses.h>
27 extern const struct screen_functions screen_playlist;
28 extern const struct screen_functions screen_browse;
29 #ifdef ENABLE_ARTIST_SCREEN
30 extern const struct screen_functions screen_artist;
31 #endif
32 extern const struct screen_functions screen_help;
33 #ifdef ENABLE_SEARCH_SCREEN
34 extern const struct screen_functions screen_search;
35 #endif
36 #ifdef ENABLE_KEYDEF_SCREEN
37 extern const struct screen_functions screen_keydef;
38 #endif
39 #ifdef ENABLE_LYRICS_SCREEN
40 extern const struct screen_functions screen_lyrics;
41 #endif
43 void
44 screen_list_init(WINDOW *w, unsigned cols, unsigned rows);
46 void
47 screen_list_exit(void);
49 void
50 screen_list_resize(unsigned cols, unsigned rows);
52 const char *
53 screen_get_name(const struct screen_functions *sf);
55 const struct screen_functions *
56 screen_lookup_name(const char *name);
58 int
59 screen_get_id(const char *name);
61 #endif