[client] spice: move protocol into transport

This commit is contained in:
Geoffrey McRae
2026-08-11 15:33:53 +10:00
parent 2bd0db1a26
commit 5b12685e3c
28 changed files with 2398 additions and 1058 deletions

View File

@@ -33,7 +33,6 @@
#include "common/event.h"
#include "common/ll.h"
#include <purespice.h>
#include "cimgui.h"
#include "interface/transport.h"
@@ -79,12 +78,11 @@ struct AppState
bool dsInitialized;
bool jitRender;
uint8_t spiceUUID[16];
atomic_bool spiceReady;
atomic_bool spiceDisplayRequested;
atomic_bool spiceDisplayActive;
atomic_bool spiceDisplayTransition;
bool spicePrimarySurfaceValid;
atomic_bool fallbackReady;
atomic_bool fallbackDisplayRequested;
atomic_bool fallbackDisplayActive;
atomic_bool fallbackDisplayTransition;
bool fallbackSurfaceValid;
uint8_t guestUUID[16];
bool guestUUIDValid;
@@ -112,8 +110,6 @@ struct AppState
LG_RendererRect dstRect;
bool posInfoValid;
bool alignToGuest;
atomic_bool spiceClose;
atomic_uint_least64_t shaderMousePosition;
atomic_uint_least32_t shaderMouseState;
@@ -127,6 +123,10 @@ struct AppState
const LG_VideoOps * videoOps;
LG_TransportFeatureFlags transportFeatures;
LG_TransportInstance fallbackTransport;
LG_TransportSession fallbackSession;
const LG_VideoOps * fallbackVideoOps;
LGThread * cursorThread;
LGThread * frameThread;
LGEvent * frameEvent;
@@ -152,8 +152,6 @@ struct AppState
enum MicDefaultState micDefaultState;
int spiceHotX, spiceHotY;
// Set to true when setHDRImageDesc() returns false, indicating
// the display server could not apply the HDR image description.
// Checked by the renderer to fall back to software tone-mapping.