summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2013-08-07 16:48:46 +0200
committerAlon Levy <alevy@redhat.com>2013-08-07 16:48:46 +0200
commit4ddc017fd851d324094f86c0f5ccaf10d10e761b (patch)
tree3a706c93c51794315853dec1e00b52fde2f0aead
parentcddebbdc53f1b87d9c506e25454f51c515b5207a (diff)
wip - shared memory protocol update (with spice-protocol)wip/shared-mem
-rw-r--r--common/messages.h9
m---------spice-protocol0
-rw-r--r--spice.proto11
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;