Code

list_window: bell when searches wrap
[ncmpc.git] / src / options.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 OPTIONS_H
21 #define OPTIONS_H
23 #include "config.h"
25 #include <stdbool.h>
27 #define MPD_HOST_ENV "MPD_HOST"
28 #define MPD_PORT_ENV "MPD_PORT"
30 typedef struct {
31         char *host;
32         char *username;
33         char *password;
34         char *config_file;
35         char *key_file;
36         char *list_format;
37         char *status_format;
38 #ifndef NCMPC_MINI
39         char *xterm_title_format;
40         char *scroll_sep;
41 #endif
42         char **screen_list;
43         char *timedisplay_type;
44         int port;
45         int crossfade_time;
46         int search_mode;
47         int hide_cursor;
48         int seek_time;
49 #ifdef ENABLE_LYRICS_SCREEN
50         int lyrics_timeout;
51 #endif
52         bool find_wrap;
53         bool find_show_last_pattern;
54         bool list_wrap;
55         bool auto_center;
56         bool wide_cursor;
57 #ifdef ENABLE_COLORS
58         bool enable_colors;
59 #endif
60         bool audible_bell;
61         bool visible_bell;
62         bool bell_on_wrap;
63 #ifndef NCMPC_MINI
64         bool enable_xterm_title;
65 #endif
66 #ifdef HAVE_GETMOUSE
67         bool enable_mouse;
68 #endif
69 #ifndef NCMPC_MINI
70         bool scroll;
71         bool visible_bitrate;
72         bool welcome_screen_list;
73         bool display_time;
74 #endif
75 } options_t;
77 extern options_t options;
79 void options_init(void);
80 void options_parse(int argc, const char **argv);
82 #endif