aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
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 /main.c
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 '')
-rw-r--r--main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/main.c b/main.c
index c2c29b3ac..0e3613329 100644
--- a/main.c
+++ b/main.c
@@ -11,6 +11,8 @@
#include "options.h"
#include "command.h"
#include "screen.h"
+#include "conf.h"
+
static mpd_client_t *mpc = NULL;
@@ -42,9 +44,14 @@ main(int argc, const char *argv[])
struct sigaction act;
int counter, connected;
+ /* initialize options */
+ options = options_init();
+
+ /* read configuration */
+ read_rc_file(NULL, options);
+
/* parse command line options */
- options_init();
- options = options_parse(argc, argv);
+ options_parse(argc, argv);
/* initialize local charset */
if( charset_init() )