diff options
author | Marc-Andre Lureau <marcandre.lureau@gmail.com> | 2015-12-16 00:27:23 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-01-14 11:49:25 +0000 |
commit | b61f43f228950505ef809dccd6a73aefdfd44ce1 (patch) | |
tree | bd161b75f70d74bb1e3d8ad75dd148d2f302fe5a | |
parent | a18bed136f866584daa2a03fe4cf12cc91d295bb (diff) | |
download | spice-common-b61f43f228950505ef809dccd6a73aefdfd44ce1.tar.gz spice-common-b61f43f228950505ef809dccd6a73aefdfd44ce1.tar.xz spice-common-b61f43f228950505ef809dccd6a73aefdfd44ce1.zip |
Add GL scanout structures
See related protocol changes.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | common/client_marshallers.h | 1 | ||||
-rw-r--r-- | common/messages.h | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/common/client_marshallers.h b/common/client_marshallers.h index 522f620..41414fa 100644 --- a/common/client_marshallers.h +++ b/common/client_marshallers.h @@ -45,6 +45,7 @@ typedef struct { void (*msgc_main_migrate_dst_do_seamless)(SpiceMarshaller *m, SpiceMsgcMainMigrateDstDoSeamless *msg); void (*msgc_display_init)(SpiceMarshaller *m, SpiceMsgcDisplayInit *msg); void (*msgc_display_stream_report)(SpiceMarshaller *m, SpiceMsgcDisplayStreamReport *msg); + void (*msgc_display_gl_draw_done)(SpiceMarshaller *m, SpiceMsgcDisplayGlDrawDone *msg); void (*msgc_inputs_key_down)(SpiceMarshaller *m, SpiceMsgcKeyDown *msg); void (*msgc_inputs_key_up)(SpiceMarshaller *m, SpiceMsgcKeyUp *msg); void (*msgc_inputs_key_modifiers)(SpiceMarshaller *m, SpiceMsgcKeyModifiers *msg); diff --git a/common/messages.h b/common/messages.h index 12b1943..f537950 100644 --- a/common/messages.h +++ b/common/messages.h @@ -379,6 +379,9 @@ typedef struct SpiceMsgcDisplayStreamReport { uint32_t audio_delay; } SpiceMsgcDisplayStreamReport; +typedef struct SpiceMsgcDisplayGlDrawDone { +} SpiceMsgcDisplayGlDrawDone; + typedef struct SpiceMsgCursorInit { SpicePoint16 position; uint16_t trail_length; @@ -638,6 +641,22 @@ typedef struct SpiceMsgcDisplayPreferredCompression { uint8_t image_compression; } SpiceMsgcDisplayPreferredCompression; +typedef struct SpiceMsgDisplayGlScanoutUnix { + int drm_dma_buf_fd; + uint32_t width; + uint32_t height; + uint32_t stride; + uint32_t drm_fourcc_format; + uint32_t flags; +} SpiceMsgDisplayGlScanoutUnix; + +typedef struct SpiceMsgDisplayGlDraw { + uint32_t x; + uint32_t y; + uint32_t w; + uint32_t h; +} SpiceMsgDisplayGlDraw; + SPICE_END_DECLS #endif /* _H_SPICE_PROTOCOL */ |