]> mj.ucw.cz Git - ursary.git/blobdiff - mpd.c
Better IR control of lights
[ursary.git] / mpd.c
diff --git a/mpd.c b/mpd.c
index f0da2a335e67ad71ae942d6862132eb3c682bc86..0e2fb1c8b2ca3c1d734bc3cbba41197acd179167 100644 (file)
--- a/mpd.c
+++ b/mpd.c
@@ -4,7 +4,7 @@
  *     (c) 2014 Martin Mares <mj@ucw.cz>
  */
 
-#define LOCAL_DEBUG
+#undef LOCAL_DEBUG
 
 #include <ucw/lib.h>
 #include <ucw/clists.h>
@@ -328,6 +328,16 @@ void mpd_pause(int arg)
   return mpd_cmd(NULL, "pause %d", arg);
 }
 
+void mpd_next(void)
+{
+  return mpd_cmd(NULL, "next");
+}
+
+void mpd_prev(void)
+{
+  return mpd_cmd(NULL, "previous");
+}
+
 static void mpd_connect(struct main_timer *t)
 {
   timer_del(t);