[Spice-devel] [PATCH spice-common 2/2] Add GL scanout channel structure

Marc-André Lureau marcandre.lureau at gmail.com
Tue Nov 17 10:34:13 PST 2015


See related protocol changes.

Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
---
 common/messages.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/common/messages.h b/common/messages.h
index 5f5de54..2a5fabb 100644
--- a/common/messages.h
+++ b/common/messages.h
@@ -634,6 +634,22 @@ typedef struct SpiceMsgcDisplayPreferredCompression {
     uint8_t image_compression;
 } SpiceMsgcDisplayPreferredCompression;
 
+typedef struct SpiceMsgDisplayGlScanoutUnix {
+    int fd;
+    uint32_t width;
+    uint32_t height;
+    uint32_t stride;
+    uint32_t format;
+    uint8_t flags;
+} SpiceMsgDisplayGlScanoutUnix;
+
+typedef struct SpiceMsgDisplayGlScanoutUpdate {
+    uint32_t x;
+    uint32_t y;
+    uint32_t w;
+    uint32_t h;
+} SpiceMsgDisplayGlScanoutUpdate;
+
 SPICE_END_DECLS
 
 #endif /* _H_SPICE_PROTOCOL */
-- 
2.5.0



More information about the Spice-devel mailing list