X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fclientserver.h;h=f12384b18e5786b194c59feb61fa76ba404cf1eb;hb=ea6c3835debfffa22163f048eae57928311143c4;hp=a995d8b9997539be680c3bb7cb5dd381bebd7583;hpb=d3ee617f37984b380ebe32cd37ef1cda66d96c48;p=oweals%2Fminetest.git 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