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 #ifndef NCMPC_MINI
20 char *xterm_title_format;
21 char *scroll_sep;
22 #endif
23 char **screen_list;
24 char *timedisplay_type;
25 int port;
26 int crossfade_time;
27 int search_mode;
28 int hide_cursor;
29 int seek_time;
30 #ifdef ENABLE_LYRICS_SCREEN
31 int lyrics_timeout;
32 #endif
33 bool find_wrap;
34 bool find_show_last_pattern;
35 bool list_wrap;
36 bool auto_center;
37 bool wide_cursor;
38 #ifdef ENABLE_COLORS
39 bool enable_colors;
40 #endif
41 bool audible_bell;
42 bool visible_bell;
43 #ifndef NCMPC_MINI
44 bool enable_xterm_title;
45 #endif
46 #ifdef HAVE_GETMOUSE
47 bool enable_mouse;
48 #endif
49 #ifndef NCMPC_MINI
50 bool scroll;
51 bool visible_bitrate;
52 bool welcome_screen_list;
53 #endif
54 } options_t;
56 extern options_t options;
58 void options_init(void);
59 void options_parse(int argc, const char **argv);
61 #endif