aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-10 21:15:06 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-10 21:15:06 +0000
commitb46b2c9f69dd5166922d171c36e2c00ef0bf6fa8 (patch)
treee6696dca9f204b31595430f3b68743d848d98513
parentc062fca22dcfba1c9c87172d5250f15b4ff5e45f (diff)
downloadmpd-b46b2c9f69dd5166922d171c36e2c00ef0bf6fa8.tar.gz
mpd-b46b2c9f69dd5166922d171c36e2c00ef0bf6fa8.tar.xz
mpd-b46b2c9f69dd5166922d171c36e2c00ef0bf6fa8.zip
Separate PROTOCOL_VERSION from VERSION
So we can have VERSION=0.12.0rc1 and keep the clients seeing 0.12.0 git-svn-id: https://svn.musicpd.org/mpd/trunk@4608 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--configure.ac3
-rw-r--r--src/interface.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index a8b827850..ed2f64a6d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@ dnl AC_INIT(src/main.c)
dnl AM_INIT_AUTOMAKE(mpd, 0.12.0)
AC_PREREQ(2.58)
-AC_INIT(mpd, 0.12.0, warren.dukes@gmail.com)
+AC_INIT(mpd, 0.12.0rc1, warren.dukes@gmail.com)
AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)
AC_SUBST(MPD_LIBS)
@@ -16,6 +16,7 @@ AC_PROG_LIBTOOL
AC_PROG_MAKE_SET
AM_CONFIG_HEADER(config.h)
+AC_DEFINE(PROTOCOL_VERSION, "0.12.0", [The mpd protocol version])
MPD_LIBS=""
MPD_CFLAGS=""
diff --git a/src/interface.c b/src/interface.c
index 99d891bee..0381404bf 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -42,7 +42,7 @@
#include <errno.h>
#include <signal.h>
-#define GREETING "OK MPD " VERSION "\n"
+#define GREETING "OK MPD " PROTOCOL_VERSION "\n"
#define INTERFACE_MAX_BUFFER_LENGTH (40960)
#define INTERFACE_LIST_MODE_BEGIN "command_list_begin"