aboutsummaryrefslogtreecommitdiff
path: root/nncmpp.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-10-11 09:40:01 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2016-10-11 10:58:38 +0200
commit4542bdd239f3f3d89fb9f60a0198ab76452e9c4e (patch)
treea1d021465738dc7e1769e1fded43641545a49eea /nncmpp.c
parentfb75841154c0eb20d525b0363781520df0560fac (diff)
downloadnncmpp-4542bdd239f3f3d89fb9f60a0198ab76452e9c4e.tar.gz
nncmpp-4542bdd239f3f3d89fb9f60a0198ab76452e9c4e.tar.xz
nncmpp-4542bdd239f3f3d89fb9f60a0198ab76452e9c4e.zip
Move the MPD client interface to liberty
It seems like there aren't going to be any big changes any time soon.
Diffstat (limited to 'nncmpp.c')
-rw-r--r--nncmpp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/nncmpp.c b/nncmpp.c
index e5e98a4..c2090c3 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -62,11 +62,9 @@ enum
#define LIBERTY_WANT_POLLER
#define LIBERTY_WANT_ASYNC
#define LIBERTY_WANT_PROTO_HTTP
+#define LIBERTY_WANT_PROTO_MPD
#include "liberty/liberty.c"
-#include <sys/un.h>
-#include "mpd.c"
-
#include <locale.h>
#include <termios.h>
#ifndef TIOCGWINSZ
@@ -2395,9 +2393,6 @@ debug_tab_init (void)
// --- MPD interface -----------------------------------------------------------
-// TODO: this entire thing has been slavishly copy-pasted from dwmstatus
-// TODO: try to move some of this code to mpd.c
-
static void
mpd_update_playback_state (void)
{