aboutsummaryrefslogtreecommitdiffstats
path: root/src/mpdclient.h
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-24 14:26:53 +0000
committerKalle Wallin <kaw@linux.se>2004-06-24 14:26:53 +0000
commit3f76f8076c3e0a5cfcc14852e7f8badc023e4911 (patch)
tree9649dd86eb67573855f2f32929ea8c1e97c8f73d /src/mpdclient.h
parent7070837a6985d3fcc450d60be6ab70cc3d71e089 (diff)
downloadmpd-3f76f8076c3e0a5cfcc14852e7f8badc023e4911.tar.gz
mpd-3f76f8076c3e0a5cfcc14852e7f8badc023e4911.tar.xz
mpd-3f76f8076c3e0a5cfcc14852e7f8badc023e4911.zip
Renamed mpd version macro
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1643 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/mpdclient.h')
-rw-r--r--src/mpdclient.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mpdclient.h b/src/mpdclient.h
index bb8771f65..016d1ba1b 100644
--- a/src/mpdclient.h
+++ b/src/mpdclient.h
@@ -2,8 +2,16 @@
#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)
+#define MPD_VERSION_EQ(c,x,y,z) (c->connection->version[0] == x && \
+ c->connection->version[1] == y && \
+ c->connection->version[2] == z )
+
+#define MPD_VERSION_LT(c,x,y,z) ( c->connection->version[0]<x || \
+ (c->connection->version[0]==x && c->connection->version[1]<y) || \
+ (c->connection->version[0]==x && c->connection->version[1]==y && \
+ c->connection->version[2]<z) )
+
+
/****************************************************************************/
/* Playlist */