[client] update for the new LGMP interface prototypes

This commit is contained in:
Geoffrey McRae 2022-11-07 20:59:36 +11:00
parent 714b1bce70
commit 6ee30b2308
4 changed files with 9 additions and 6 deletions

View File

@ -478,10 +478,11 @@ void core_handleMouseNormal(double ex, double ey)
if (!g_state.stopVideo && if (!g_state.stopVideo &&
g_state.kvmfrFeatures & KVMFR_FEATURE_SETCURSORPOS) g_state.kvmfrFeatures & KVMFR_FEATURE_SETCURSORPOS)
{ {
const KVMFRSetCursorPos msg = { const KVMFRMessage_SetCursorPos msg = {
.msg.type = KVMFR_MESSAGE_SETCURSORPOS, .msg.type = KVMFR_MESSAGE_SETCURSORPOS,
.x = round(guest.x), .msg.clientID = g_state.clientID,
.y = round(guest.y) .x = round(guest.x),
.y = round(guest.y)
}; };
uint32_t setPosSerial; uint32_t setPosSerial;

View File

@ -1433,7 +1433,8 @@ restart:
initialSpiceEnable = 0; initialSpiceEnable = 0;
} }
status = lgmpClientSessionInit(g_state.lgmp, &udataSize, (uint8_t **)&udata); status = lgmpClientSessionInit(g_state.lgmp, &udataSize, (uint8_t **)&udata,
&g_state.clientID);
switch(status) switch(status)
{ {
case LGMP_OK: case LGMP_OK:

View File

@ -121,6 +121,7 @@ struct AppState
struct IVSHMEM shm; struct IVSHMEM shm;
PLGMPClient lgmp; PLGMPClient lgmp;
uint32_t clientID;
PLGMPClientQueue pointerQueue; PLGMPClientQueue pointerQueue;
LG_Lock pointerQueueLock; LG_Lock pointerQueueLock;
KVMFRFeatureFlags kvmfrFeatures; KVMFRFeatureFlags kvmfrFeatures;

View File

@ -167,7 +167,7 @@ typedef struct KVMFRMessage_SetCursorPos
KVMFRMessage msg; KVMFRMessage msg;
int32_t x, y; int32_t x, y;
} }
KVMFRSetCursorPos; KVMFRMessage_SetCursorPos;
typedef struct KVMFRMessage_FrameTime typedef struct KVMFRMessage_FrameTime
{ {