70853f4ff1f3180edc028710e02b9bff8d18f6e3
1 #ifndef OPTIONS_H
2 #define OPTIONS_H
4 #include <stdbool.h>
6 #define MPD_HOST_ENV "MPD_HOST"
7 #define MPD_PORT_ENV "MPD_PORT"
9 typedef struct {
10 char *host;
11 char *username;
12 char *password;
13 char *config_file;
14 char *key_file;
15 char *list_format;
16 char *status_format;
17 char *xterm_title_format;
18 char *scroll_sep;
19 char **screen_list;
20 char *timedisplay_type;
21 int port;
22 int crossfade_time;
23 int search_mode;
24 int hide_cursor;
25 int seek_time;
26 int lyrics_timeout;
27 bool reconnect;
28 bool debug;
29 bool find_wrap;
30 bool find_show_last_pattern;
31 bool list_wrap;
32 bool auto_center;
33 bool wide_cursor;
34 bool enable_colors;
35 bool audible_bell;
36 bool visible_bell;
37 bool enable_xterm_title;
38 bool enable_mouse;
39 bool scroll;
40 bool visible_bitrate;
41 bool welcome_screen_list;
42 } options_t;
44 #ifndef NO_GLOBAL_OPTIONS
45 extern options_t options;
46 #endif
48 options_t *options_init(void);
49 options_t *options_parse(int argc, const char **argv);
51 #endif