aboutsummaryrefslogtreecommitdiffstats
path: root/src/mpdclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpdclient.h')
-rw-r--r--src/mpdclient.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mpdclient.h b/src/mpdclient.h
index 391a5d224..50b8e9a92 100644
--- a/src/mpdclient.h
+++ b/src/mpdclient.h
@@ -2,6 +2,9 @@
#define MPDCLIENT_H
#include "libmpdclient.h"
+#define MPD_VERSION(c,x,y,z) (c->connection->version[0]*10000+c->connection->version[1]*100+c->connection->version[2] >= \
+ x*10000+y*100+z)
+
/****************************************************************************/
/* Playlist */
/****************************************************************************/