Code

Added support for a configuration file ~/.ncmpcrc and color support.
[ncmpc.git] / options.h
2 #define MPD_HOST_ENV "MPD_HOST"
3 #define MPD_PORT_ENV "MPD_PORT"
5 #define NCMPCRC_ENV  "NCMPCRC"
8 typedef struct 
9 {
10   char *host;
11   int   port;
12   int   reconnect;
13   int   debug;
15   int   enable_colors;
16   int   bg_color;
17   int   title_color;
18   int   line_color;
19   int   list_color;
20   int   progress_color;
21   int   status_color;
22   int   alert_color;
24 } options_t;
26 extern options_t options;
28 options_t *options_init(void);
29 options_t *options_parse(int argc, const char **argv);