summaryrefslogtreecommitdiffstats
path: root/mpd-notification.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-10-05 23:23:49 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-10-05 23:47:53 +0200
commit053e5ac36dfce0f4247bcf91656a11016701c997 (patch)
treea258372f26205bbd0ea2749a709b2822e3552455 /mpd-notification.h
parent90b01922ea7622de0eab2216912445040389ed5c (diff)
downloadmpd-notification-053e5ac36dfce0f4247bcf91656a11016701c997.tar.gz
mpd-notification-053e5ac36dfce0f4247bcf91656a11016701c997.tar.zst
support reading options from config file
This tries to read ~/.local/mpd-notification.conf, which is expected to look like this: host = localhost port = 6600 music-dir = /srv/media/music/ scale = 200 timeout = 20 Unused options can be commented or removed completely.
Diffstat (limited to 'mpd-notification.h')
-rw-r--r--mpd-notification.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpd-notification.h b/mpd-notification.h
index 0cbd370..52fbec9 100644
--- a/mpd-notification.h
+++ b/mpd-notification.h
@@ -10,6 +10,8 @@
#define _GNU_SOURCE
+#include <iniparser.h>
+
#include <mpd/client.h>
#include <libnotify/notify.h>