Code

d0a068f846e98d430f60d5b850933f2c435d5742
[ncmpc.git] / src / options.h
1 #ifndef OPTIONS_H
2 #define OPTIONS_H
4 #include <glib.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         gboolean reconnect;
28         gboolean debug;
29         gboolean find_wrap;
30         gboolean find_show_last_pattern;
31         gboolean list_wrap;
32         gboolean auto_center;
33         gboolean wide_cursor;
34         gboolean enable_colors;
35         gboolean audible_bell;
36         gboolean visible_bell;
37         gboolean enable_xterm_title;
38         gboolean enable_mouse;
39         gboolean scroll;
40 } options_t;
42 #ifndef NO_GLOBAL_OPTIONS
43 extern options_t options;
44 #endif
46 options_t *options_init(void);
47 options_t *options_parse(int argc, const char **argv);
49 #endif