aboutsummaryrefslogtreecommitdiffstats
path: root/src/options.h
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-05 11:21:43 +0000
committerKalle Wallin <kaw@linux.se>2004-06-05 11:21:43 +0000
commitf55a67b3f882641abe5a9b14b045d7ce71964af7 (patch)
tree181c15b1c59df30b2e28058f2648e5e701e57c4f /src/options.h
parent677eb1ad30321d83f6196672ea1798c0e1712870 (diff)
downloadmpd-f55a67b3f882641abe5a9b14b045d7ce71964af7.tar.gz
mpd-f55a67b3f882641abe5a9b14b045d7ce71964af7.tar.xz
mpd-f55a67b3f882641abe5a9b14b045d7ce71964af7.zip
Changed directory layout (for future use of gettext)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1342 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/options.h')
-rw-r--r--src/options.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/options.h b/src/options.h
new file mode 100644
index 000000000..2a6681e2a
--- /dev/null
+++ b/src/options.h
@@ -0,0 +1,28 @@
+
+#define MPD_HOST_ENV "MPD_HOST"
+#define MPD_PORT_ENV "MPD_PORT"
+
+typedef struct
+{
+ char *host;
+ char *username;
+ char *password;
+ char *config_file;
+ char *key_file;
+ int port;
+ int reconnect;
+ int debug;
+ int find_wrap;
+ int auto_center;
+ int wide_cursor;
+ int enable_colors;
+
+} options_t;
+
+extern options_t options;
+
+options_t *options_init(void);
+options_t *options_parse(int argc, const char **argv);
+
+
+