[client] added KVMGFX_HEADER_VERSION define

This commit is contained in:
Geoffrey McRae 2017-11-25 17:28:02 +11:00
parent 72b69a6659
commit 34e67b1b57
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -20,6 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <stdint.h>
#define KVMGFX_HEADER_MAGIC "[[KVMGFXHeader]]"
#define KVMGFX_HEADER_VERSION 3
typedef enum FrameType
{