Fix libmikmod 3.1.10 check
[cmus.git] / ui_curses.h
blob88762e5ccf9a77e1864dec798acb9407bd16d018
1 /*
2 * Copyright 2004-2006 Timo Hirvonen
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * 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
17 * 02111-1307, USA.
20 #ifndef _UI_CURSES_H
21 #define _UI_CURSES_H
23 #include "search.h"
24 #include "compiler.h"
26 enum ui_input_mode {
27 NORMAL_MODE,
28 COMMAND_MODE,
29 SEARCH_MODE
32 extern int cmus_running;
33 extern int ui_initialized;
34 extern enum ui_input_mode input_mode;
35 extern int cur_view;
36 extern struct searchable *searchable;
38 extern char *lib_filename;
39 extern char *pl_filename;
41 void update_titleline(void);
42 void update_statusline(void);
43 void update_colors(void);
44 void update_full(void);
45 void info_msg(const char *format, ...) __FORMAT(1, 2);
46 void error_msg(const char *format, ...) __FORMAT(1, 2);
47 int yes_no_query(const char *format, ...) __FORMAT(1, 2);
48 void search_not_found(void);
49 void set_view(int view);
50 void enter_command_mode(void);
51 void enter_search_mode(void);
52 void enter_search_backward_mode(void);
54 #endif