summaryrefslogtreecommitdiffstats
path: root/server/red_dispatcher.h
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-06-07 15:04:51 +0300
committerAlon Levy <alevy@redhat.com>2012-07-22 13:50:49 +0300
commit0acea04d71f28e98b15620e31902dd8e2196c637 (patch)
tree8a8488971d761945e8bf8c75705e7e2cbb7e5f2f /server/red_dispatcher.h
parente29dc5250cb12cf42b6875d5a7e4bd77d2897d74 (diff)
downloadspice-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/red_dispatcher.h')
-rw-r--r--server/red_dispatcher.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/red_dispatcher.h b/server/red_dispatcher.h
index 36db4e34..98f8ceaf 100644
--- a/server/red_dispatcher.h
+++ b/server/red_dispatcher.h
@@ -189,5 +189,10 @@ typedef struct RedWorkerMessageDestroySurfaceWaitAsync {
typedef struct RedWorkerMessageResetMemslots {
} RedWorkerMessageResetMemslots;
+typedef struct RedWorkerMessageMonitorsConfigAsync {
+ RedWorkerMessageAsync base;
+ QXLPHYSICAL monitors_config;
+ int group_id;
+} RedWorkerMessageMonitorsConfigAsync;
#endif