From ebf7ea50193afe5a3d0968b87b4743eb1ee84025 Mon Sep 17 00:00:00 2001 From: sapier Date: Wed, 25 Jun 2014 19:04:47 +0200 Subject: Add formspec api versioning --- src/clientserver.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/clientserver.h') 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 -- cgit v1.2.3