From 0acea04d71f28e98b15620e31902dd8e2196c637 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 7 Jun 2012 15:04:51 +0300 Subject: 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. --- server/spice.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/spice.h') 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; -- cgit