[common] add new KVMFR structs and fields for feature support

This commit is contained in:
Geoffrey McRae 2021-08-05 22:19:11 +10:00
parent a3de0b2a59
commit 95bbd67dea

View File

@ -28,7 +28,7 @@
#include "types.h" #include "types.h"
#define KVMFR_MAGIC "KVMFR---" #define KVMFR_MAGIC "KVMFR---"
#define KVMFR_VERSION 13 #define KVMFR_VERSION 14
#define KVMFR_MAX_DAMAGE_RECTS 64 #define KVMFR_MAX_DAMAGE_RECTS 64
@ -47,11 +47,26 @@ enum
typedef uint32_t KVMFRCursorFlags; typedef uint32_t KVMFRCursorFlags;
enum
{
KVMFR_FEATURE_SETCURSORPOS = 0x1
};
typedef uint32_t KVMFRFeatureFlags;
enum
{
KVMFR_MESSAGE_SETCURSORPOS
};
typedef uint32_t KVMFRMessageType;
typedef struct KVMFR typedef struct KVMFR
{ {
char magic[8]; char magic[8];
uint32_t version; uint32_t version;
char hostver[32]; char hostver[32];
KVMFRFeatureFlags features;
} }
KVMFR; KVMFR;
@ -84,4 +99,17 @@ typedef struct KVMFRFrame
} }
KVMFRFrame; KVMFRFrame;
typedef struct KVMFRMessage
{
KVMFRMessageType type;
}
KVMFRMessage;
typedef struct KVMFRSetCursorPos
{
KVMFRMessage msg;
int32_t x, y;
}
KVMFRSetCursorPos;
#endif #endif