diff options
author | Alon Levy <alevy@redhat.com> | 2012-06-07 15:04:51 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-07-22 13:50:49 +0300 |
commit | 0acea04d71f28e98b15620e31902dd8e2196c637 (patch) | |
tree | 8a8488971d761945e8bf8c75705e7e2cbb7e5f2f /server/spice.h | |
parent | e29dc5250cb12cf42b6875d5a7e4bd77d2897d74 (diff) | |
download | spice-0acea04d71f28e98b15620e31902dd8e2196c637.tar.gz spice-0acea04d71f28e98b15620e31902dd8e2196c637.tar.xz spice-0acea04d71f28e98b15620e31902dd8e2196c637.zip |
server: add monitors_config support
a SpiceMsgDisplayMonitorsConfig is sent on two occasions:
* as a result of a spice_qxl_monitors_config_async
* whenever a client connects and there is a previously set monitors
config
Sending the new message is protected by a new cap,
SPICE_DISPLAY_CAP_MONITORS_CONFIG
More elaborately:
spice_qxl_monitors_config_async receives a QXLPHYSICAL address of a
QXLMonitorsConfig struct and reads it, caching it in the RedWorker, and
sending it to all clients. Whenever a new client connects it receives
a SpiceMsgDisplayMonitorsConfig message as well.
Diffstat (limited to 'server/spice.h')
-rw-r--r-- | server/spice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/spice.h b/server/spice.h index abaffbdd..ec28f4ab 100644 --- a/server/spice.h +++ b/server/spice.h @@ -161,6 +161,9 @@ void spice_qxl_create_primary_surface_async(QXLInstance *instance, uint32_t surf void spice_qxl_destroy_surface_async(QXLInstance *instance, uint32_t surface_id, uint64_t cookie); /* suspend and resolution change on windows drivers */ void spice_qxl_flush_surfaces_async(QXLInstance *instance, uint64_t cookie); +/* since spice 0.12.0 */ +void spice_qxl_monitors_config_async(QXLInstance *instance, QXLPHYSICAL monitors_config, + int group_id, uint64_t cookie); typedef struct QXLDrawArea { uint8_t *buf; |