diff options
author | Izik Eidus <ieidus@redhat.com> | 2010-04-03 05:40:50 +0300 |
---|---|---|
committer | Izik Eidus <ieidus@redhat.com> | 2010-04-03 05:40:50 +0300 |
commit | 14db228e81db1831f353f8714691e57f5751ff1e (patch) | |
tree | 027e206dd240f891ac574e4e61077e73c179ff2f | |
parent | d9f01c38ee6e70f1728e7cdbf82c43de6968aba8 (diff) |
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>
-rw-r--r-- | spice/protocol.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spice/protocol.h b/spice/protocol.h index a0c5251..c63d1a1 100644 --- a/spice/protocol.h +++ b/spice/protocol.h @@ -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; |