summaryrefslogtreecommitdiff
path: root/src/clientserver.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-25 19:04:47 +0200
committersapier <Sapier at GMX dot net>2014-06-29 12:13:55 +0200
commitebf7ea50193afe5a3d0968b87b4743eb1ee84025 (patch)
tree53470e3b12911de9d7aed0acd0c1d96cbd006158 /src/clientserver.h
parent1367895ae226b4bbdc152274329c789cb5738022 (diff)
downloadminetest-ebf7ea50193afe5a3d0968b87b4743eb1ee84025.tar.gz
minetest-ebf7ea50193afe5a3d0968b87b4743eb1ee84025.tar.bz2
minetest-ebf7ea50193afe5a3d0968b87b4743eb1ee84025.zip
Add formspec api versioning
Diffstat (limited to 'src/clientserver.h')
-rw-r--r--src/clientserver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clientserver.h b/src/clientserver.h
index a995d8b99..f12384b18 100644
--- a/src/clientserver.h
+++ b/src/clientserver.h
@@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef CLIENTSERVER_HEADER
#define CLIENTSERVER_HEADER
+#include "util/string.h"
/*
changes by PROTOCOL_VERSION:
@@ -122,6 +123,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define PASSWORD_SIZE 28 // Maximum password length. Allows for
// base64-encoded SHA-1 (27+\0).
+#define FORMSPEC_API_VERSION 1
+#define FORMSPEC_VERSION_STRING "formspec_version[" TOSTRING(FORMSPEC_API_VERSION) "]"
+
#define TEXTURENAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-"
enum ToClientCommand