diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-04 17:13:26 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-04 17:13:26 -0500 |
commit | dfa79e8acd0ffce337d78f3e1473647f1c38dc58 (patch) | |
tree | eeef94e0d69352b2c0ed2b16408432f6d250fae8 /ui/spice-display.h | |
parent | c00c0dc6875be609072434bd0aaf516270e33d4a (diff) | |
parent | 9197a7c8af41c2a410d5debcf20deabbc20243c0 (diff) | |
download | qemu-dfa79e8acd0ffce337d78f3e1473647f1c38dc58.zip qemu-dfa79e8acd0ffce337d78f3e1473647f1c38dc58.tar.gz qemu-dfa79e8acd0ffce337d78f3e1473647f1c38dc58.tar.bz2 |
Merge remote-tracking branch 'spice/spice.v40' into staging
Diffstat (limited to 'ui/spice-display.h')
-rw-r--r-- | ui/spice-display.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ui/spice-display.h b/ui/spice-display.h index 2f95f68..1388641 100644 --- a/ui/spice-display.h +++ b/ui/spice-display.h @@ -33,6 +33,20 @@ #define NUM_SURFACES 1024 +/* + * Internal enum to differenciate between options for + * io calls that have a sync (old) version and an _async (new) + * version: + * QXL_SYNC: use the old version + * QXL_ASYNC: use the new version and make sure there are no two + * happening at the same time. This is used for guest initiated + * calls + */ +typedef enum qxl_async_io { + QXL_SYNC, + QXL_ASYNC, +} qxl_async_io; + typedef struct SimpleSpiceDisplay SimpleSpiceDisplay; typedef struct SimpleSpiceUpdate SimpleSpiceUpdate; @@ -75,8 +89,22 @@ void qemu_spice_create_host_memslot(SimpleSpiceDisplay *ssd); void qemu_spice_create_host_primary(SimpleSpiceDisplay *ssd); void qemu_spice_destroy_host_primary(SimpleSpiceDisplay *ssd); void qemu_spice_vm_change_state_handler(void *opaque, int running, int reason); +void qemu_spice_display_init_common(SimpleSpiceDisplay *ssd, DisplayState *ds); void qemu_spice_display_update(SimpleSpiceDisplay *ssd, int x, int y, int w, int h); void qemu_spice_display_resize(SimpleSpiceDisplay *ssd); void qemu_spice_display_refresh(SimpleSpiceDisplay *ssd); + +void qemu_spice_add_memslot(SimpleSpiceDisplay *ssd, QXLDevMemSlot *memslot, + qxl_async_io async); +void qemu_spice_del_memslot(SimpleSpiceDisplay *ssd, uint32_t gid, + uint32_t sid); +void qemu_spice_create_primary_surface(SimpleSpiceDisplay *ssd, uint32_t id, + QXLDevSurfaceCreate *surface, + qxl_async_io async); +void qemu_spice_destroy_primary_surface(SimpleSpiceDisplay *ssd, + uint32_t id, qxl_async_io async); +void qemu_spice_wakeup(SimpleSpiceDisplay *ssd); +void qemu_spice_start(SimpleSpiceDisplay *ssd); +void qemu_spice_stop(SimpleSpiceDisplay *ssd); |