diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2016-03-17 16:35:49 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-03-17 16:26:56 +0000 |
commit | ae931c7dab8c78d5ab75caf022f20599c49c01c2 (patch) | |
tree | 31bc3cb7d8f14cec5382f3972a84f78e413fa9f0 /server/red-qxl.h | |
parent | e45ab9cf230f127d93dd3a24780cea676f43aa9c (diff) |
Add more red_qxl_ methods
Add red_qxl_ methods wrapping the QXLInterface vfuncs. This allows to
remove most of the qxl_get_interface() use outside of red-qxl.c
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/red-qxl.h')
-rw-r--r-- | server/red-qxl.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/server/red-qxl.h b/server/red-qxl.h index 7e158c29..f58d42bb 100644 --- a/server/red-qxl.h +++ b/server/red-qxl.h @@ -46,6 +46,23 @@ void red_qxl_put_gl_scanout(QXLInstance *qxl, SpiceMsgDisplayGlScanoutUnix *scan void red_qxl_gl_draw_async_complete(QXLInstance *qxl); SpiceServer* red_qxl_get_server(QXLState *qxl); +/* Wrappers around QXLInterface vfuncs */ +void red_qxl_get_init_info(QXLInstance *qxl, QXLDevInitInfo *info);; +int red_qxl_get_command(QXLInstance *qxl, struct QXLCommandExt *cmd); +int red_qxl_req_cmd_notification(QXLInstance *qxl); +void red_qxl_release_resource(QXLInstance *qxl, struct QXLReleaseInfoExt release_info); +int red_qxl_get_cursor_command(QXLInstance *qxl, struct QXLCommandExt *cmd); +int red_qxl_req_cursor_notification(QXLInstance *qxl); +void red_qxl_notify_update(QXLInstance *qxl, uint32_t update_id); +int red_qxl_flush_resources(QXLInstance *qxl); +void red_qxl_async_complete(QXLInstance *qxl, AsyncCommand *cmd); +void red_qxl_update_area_complete(QXLInstance *qxl, uint32_t surface_id, + struct QXLRect *updated_rects, + uint32_t num_updated_rects); +void red_qxl_set_client_capabilities(QXLInstance *qxl, + uint8_t client_present, + uint8_t caps[SPICE_CAPABILITIES_SIZE]); + typedef uint32_t RedWorkerMessage; /* Keep message order, only append new messages! |