Code

options: don't store disabled options
[ncmpc.git] / src / options.h
1 #ifndef OPTIONS_H
2 #define OPTIONS_H
4 #include "config.h"
6 #include <stdbool.h>
8 #define MPD_HOST_ENV "MPD_HOST"
9 #define MPD_PORT_ENV "MPD_PORT"
11 typedef struct {
12         char *host;
13         char *username;
14         char *password;
15         char *config_file;
16         char *key_file;
17         char *list_format;
18         char *status_format;
19         char *xterm_title_format;
20         char *scroll_sep;
21         char **screen_list;
22         char *timedisplay_type;
23         int port;
24         int crossfade_time;
25         int search_mode;
26         int hide_cursor;
27         int seek_time;
28 #ifdef ENABLE_LYRICS_SCREEN
29         int lyrics_timeout;
30 #endif
31         bool find_wrap;
32         bool find_show_last_pattern;
33         bool list_wrap;
34         bool auto_center;
35         bool wide_cursor;
36 #ifdef ENABLE_COLORS
37         bool enable_colors;
38 #endif
39         bool audible_bell;
40         bool visible_bell;
41         bool enable_xterm_title;
42 #ifdef HAVE_GETMOUSE
43         bool enable_mouse;
44 #endif
45         bool scroll;
46         bool visible_bitrate;
47         bool welcome_screen_list;
48 } options_t;
50 extern options_t options;
52 void options_init(void);
53 void options_parse(int argc, const char **argv);
55 #endif