diff options
-rw-r--r-- | common/messages.h | 9 | ||||
m--------- | spice-protocol | 0 | ||||
-rw-r--r-- | spice.proto | 11 |
3 files changed, 20 insertions, 0 deletions
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 -Subproject b00bf19dda5826f907ec8cf189f94822aaae748 +Subproject 0376cf60e283f596374aacbb657cd8e575949ee diff --git a/spice.proto b/spice.proto index ea13d17..fac72bf 100644 --- a/spice.proto +++ b/spice.proto @@ -850,6 +850,15 @@ channel DisplayChannel : BaseChannel { } @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; |