5927d4c443b8d9e84727709ccc20f33e1275bf62
1 /* ncmpc (Ncurses MPD Client)
2 * (c) 2004-2009 The Music Player Daemon Project
3 * Project homepage: http://musicpd.org
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>
26 #include <glib.h>
28 #define MPD_HOST_ENV "MPD_HOST"
29 #define MPD_PORT_ENV "MPD_PORT"
31 typedef struct {
32 char *host;
33 char *username;
34 char *password;
35 char *config_file;
36 char *key_file;
37 char *list_format;
38 char *status_format;
39 #ifndef NCMPC_MINI
40 char *xterm_title_format;
41 char *scroll_sep;
42 #endif
43 char **screen_list;
44 char *timedisplay_type;
45 int port;
46 int crossfade_time;
47 int search_mode;
48 int hide_cursor;
49 int seek_time;
50 #ifdef ENABLE_LYRICS_SCREEN
51 int lyrics_timeout;
52 #endif
53 bool find_wrap;
54 bool find_show_last_pattern;
55 bool list_wrap;
56 int scroll_offset;
57 bool auto_center;
58 bool wide_cursor;
59 bool hardware_cursor;
61 #ifdef ENABLE_COLORS
62 bool enable_colors;
63 #endif
64 bool audible_bell;
65 bool visible_bell;
66 bool bell_on_wrap;
67 GTime status_message_time;
68 #ifndef NCMPC_MINI
69 bool enable_xterm_title;
70 #endif
71 #ifdef HAVE_GETMOUSE
72 bool enable_mouse;
73 #endif
74 #ifndef NCMPC_MINI
75 bool scroll;
76 bool visible_bitrate;
77 bool welcome_screen_list;
78 bool display_time;
79 bool jump_prefix_only;
80 #endif
81 } options_t;
83 extern options_t options;
85 void options_init(void);
86 void options_parse(int argc, const char **argv);
88 #endif