aboutsummaryrefslogtreecommitdiffstats
path: root/options.h
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-25 11:44:59 +0000
committerKalle Wallin <kaw@linux.se>2004-03-25 11:44:59 +0000
commit268b0823860274d6079c5dd307770a0769d404ef (patch)
tree25dea360c739fca9ad931caa1f1aab320770338e /options.h
parent6777db4e48d23b9841ebd5e081c8dd3f4437a586 (diff)
downloadmpd-268b0823860274d6079c5dd307770a0769d404ef.tar.gz
mpd-268b0823860274d6079c5dd307770a0769d404ef.tar.xz
mpd-268b0823860274d6079c5dd307770a0769d404ef.zip
Added support for a configuration file ~/.ncmpcrc and color support.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@473 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'options.h')
-rw-r--r--options.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/options.h b/options.h
index 49af19984..a8ac17981 100644
--- a/options.h
+++ b/options.h
@@ -2,6 +2,8 @@
#define MPD_HOST_ENV "MPD_HOST"
#define MPD_PORT_ENV "MPD_PORT"
+#define NCMPCRC_ENV "NCMPCRC"
+
typedef struct
{
@@ -10,9 +12,21 @@ typedef struct
int reconnect;
int debug;
+ int enable_colors;
+ int bg_color;
+ int title_color;
+ int line_color;
+ int list_color;
+ int progress_color;
+ int status_color;
+ int alert_color;
+
} options_t;
-void options_init(void);
+extern options_t options;
+
+options_t *options_init(void);
options_t *options_parse(int argc, const char **argv);
-options_t *get_options(void);
+
+