From 4ddc017fd851d324094f86c0f5ccaf10d10e761b Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 7 Aug 2013 16:48:46 +0200 Subject: wip - shared memory protocol update (with spice-protocol) --- common/messages.h | 9 +++++++++ spice-protocol | 2 +- spice.proto | 11 +++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/common/messages.h b/common/messages.h index 4f71369..aa31e26 100644 --- a/common/messages.h +++ b/common/messages.h @@ -233,6 +233,15 @@ typedef struct SpiceMsgSurfaceCreate { uint32_t flags; } SpiceMsgSurfaceCreate; +typedef struct SpiceMsgSurfaceCreateShm { + uint64_t shm_offset; + uint32_t surface_id; + uint32_t width; + uint32_t height; + uint32_t format; + uint32_t flags; +} SpiceMsgSurfaceCreateShm; + typedef struct SpiceMsgSurfaceDestroy { uint32_t surface_id; } SpiceMsgSurfaceDestroy; diff --git a/spice-protocol b/spice-protocol index b00bf19..0376cf6 160000 --- a/spice-protocol +++ b/spice-protocol @@ -1 +1 @@ -Subproject commit b00bf19dda5826f907ec8cf189f94822aaae7484 +Subproject commit 0376cf60e283f596374aacbb657cd8e575949ee3 diff --git a/spice.proto b/spice.proto index ea13d17..fac72bf 100644 --- a/spice.proto +++ b/spice.proto @@ -849,6 +849,15 @@ channel DisplayChannel : BaseChannel { surface_flags flags; } @ctype(SpiceMsgSurfaceCreate) surface_create; + message { + uint64 shm_offset; + uint32 surface_id; + uint32 width; + uint32 height; + surface_fmt format; + surface_flags flags; + } @ctype(SpiceMsgSurfaceCreateShm) surface_create_shm; + message { uint32 surface_id; } @ctype(SpiceMsgSurfaceDestroy) surface_destroy; @@ -902,6 +911,8 @@ channel DisplayChannel : BaseChannel { } shm_offer; message { + /* TODO: does it make sense to care about surface_id != 0? */ + Rect box; Clip clip; } shm_damage; -- cgit v1.2.3