791ec2f09c9faa3971ebf8ee0bcaf9135f805505
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 int lyrics_timeout;
29 bool find_wrap;
30 bool find_show_last_pattern;
31 bool list_wrap;
32 bool auto_center;
33 bool wide_cursor;
34 #ifdef ENABLE_COLORS
35 bool enable_colors;
36 #endif
37 bool audible_bell;
38 bool visible_bell;
39 bool enable_xterm_title;
40 bool enable_mouse;
41 bool scroll;
42 bool visible_bitrate;
43 bool welcome_screen_list;
44 } options_t;
46 extern options_t options;
48 void options_init(void);
49 void options_parse(int argc, const char **argv);
51 #endif