mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2026-01-26 01:35:46 +00:00
spice-protocl: add spice_msg_display_surface_create/destroy
protocol commands to create/destroy surface on the client. i removed spice_msg_display_mode as it now not needed Signed-off-by: Izik Eidus <ieidus@redhat.com>
This commit is contained in:
parent
d9f01c38ee
commit
14db228e81
@ -379,6 +379,9 @@ enum {
|
||||
SPICE_MSG_DISPLAY_DRAW_TRANSPARENT,
|
||||
SPICE_MSG_DISPLAY_DRAW_ALPHA_BLEND,
|
||||
|
||||
SPICE_MSG_DISPLAY_SURFACE_CREATE,
|
||||
SPICE_MSG_DISPLAY_SURFACE_DESTROY,
|
||||
|
||||
SPICE_MSG_END_DISPLAY,
|
||||
};
|
||||
|
||||
@ -400,7 +403,25 @@ typedef struct SPICE_ATTR_PACKED SpiceMsgDisplayMode {
|
||||
uint32_t bits;
|
||||
} SpiceMsgDisplayMode;
|
||||
|
||||
enum {
|
||||
SPICE_SURFACE_FLAGS_PRIMARY = (1 << 0),
|
||||
};
|
||||
|
||||
typedef struct SPICE_ATTR_PACKED SpiceMsgSurfaceCreate {
|
||||
uint32_t surface_id;
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
uint8_t depth;
|
||||
uint32_t flags;
|
||||
uint32_t type;
|
||||
} SpiceMsgSurfaceCreate;
|
||||
|
||||
typedef struct SPICE_ATTR_PACKED SpiceMsgSurfaceDestroy {
|
||||
uint32_t surface_id;
|
||||
} SpiceMsgSurfaceDestroy;
|
||||
|
||||
typedef struct SPICE_ATTR_PACKED SpiceMsgDisplayBase {
|
||||
uint32_t surface_id;
|
||||
SpiceRect box;
|
||||
SpiceClip clip;
|
||||
} SpiceMsgDisplayBase;
|
||||
@ -480,6 +501,7 @@ enum {
|
||||
};
|
||||
|
||||
typedef struct SPICE_ATTR_PACKED SpiceMsgDisplayStreamCreate {
|
||||
uint32_t surface_id;
|
||||
uint32_t id;
|
||||
uint32_t flags;
|
||||
uint32_t codec_type;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user