From 95bbd67dea87d16024d02c411f04dfec22540469 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 5 Aug 2021 22:19:11 +1000 Subject: [PATCH] [common] add new KVMFR structs and fields for feature support --- common/include/common/KVMFR.h | 36 +++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/common/include/common/KVMFR.h b/common/include/common/KVMFR.h index 9d0bb268..320ff445 100644 --- a/common/include/common/KVMFR.h +++ b/common/include/common/KVMFR.h @@ -28,7 +28,7 @@ #include "types.h" #define KVMFR_MAGIC "KVMFR---" -#define KVMFR_VERSION 13 +#define KVMFR_VERSION 14 #define KVMFR_MAX_DAMAGE_RECTS 64 @@ -47,11 +47,26 @@ enum typedef uint32_t KVMFRCursorFlags; +enum +{ + KVMFR_FEATURE_SETCURSORPOS = 0x1 +}; + +typedef uint32_t KVMFRFeatureFlags; + +enum +{ + KVMFR_MESSAGE_SETCURSORPOS +}; + +typedef uint32_t KVMFRMessageType; + typedef struct KVMFR { - char magic[8]; - uint32_t version; - char hostver[32]; + char magic[8]; + uint32_t version; + char hostver[32]; + KVMFRFeatureFlags features; } KVMFR; @@ -84,4 +99,17 @@ typedef struct KVMFRFrame } KVMFRFrame; +typedef struct KVMFRMessage +{ + KVMFRMessageType type; +} +KVMFRMessage; + +typedef struct KVMFRSetCursorPos +{ + KVMFRMessage msg; + int32_t x, y; +} +KVMFRSetCursorPos; + #endif