From 34e67b1b57a4feaa0cdec33d4d5b1447f80013d1 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 25 Nov 2017 17:28:02 +1100 Subject: [PATCH] [client] added KVMGFX_HEADER_VERSION define --- client/main.c | 2 +- common/KVMGFXHeader.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/main.c b/client/main.c index 50c4320b..5a62fd9e 100644 --- a/client/main.c +++ b/client/main.c @@ -93,7 +93,7 @@ int renderThread(void * unused) if (memcmp(state.shm->magic, KVMGFX_HEADER_MAGIC, sizeof(KVMGFX_HEADER_MAGIC)) != 0) continue; - if (state.shm->version != 2) + if (state.shm->version != KVMGFX_HEADER_VERSION) continue; bool ready = false; diff --git a/common/KVMGFXHeader.h b/common/KVMGFXHeader.h index d4cda089..9174ce3a 100644 --- a/common/KVMGFXHeader.h +++ b/common/KVMGFXHeader.h @@ -19,7 +19,8 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include -#define KVMGFX_HEADER_MAGIC "[[KVMGFXHeader]]" +#define KVMGFX_HEADER_MAGIC "[[KVMGFXHeader]]" +#define KVMGFX_HEADER_VERSION 3 typedef enum FrameType {