summaryrefslogtreecommitdiffstats
path: root/common/messages.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2012-03-02 13:45:15 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2012-03-05 18:19:07 +0100
commit36d8da628380e7a63df893846f96ee608b2e1af8 (patch)
tree4503e1737ec75f895f7aee1561ca166087939d52 /common/messages.h
parentf0ff2e383efba62e4f0368facd855d54ae915821 (diff)
downloadspice-36d8da628380e7a63df893846f96ee608b2e1af8.tar.gz
spice-36d8da628380e7a63df893846f96ee608b2e1af8.tar.xz
spice-36d8da628380e7a63df893846f96ee608b2e1af8.zip
Send name & uuid to capable clients
Add spice_server_set_name() and spice_server_set_uuid() that allows the client to identify a Spice server (useful to associate settings with a particular server) The SPICE_MSG_MAIN_NAME and SPICE_MSG_MAIN_UUID messages are only sent to capable clients, announcing SPICE_MAIN_CAP_NAME_AND_UUID.
Diffstat (limited to 'common/messages.h')
-rw-r--r--common/messages.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/messages.h b/common/messages.h
index a54190f3..ec58da55 100644
--- a/common/messages.h
+++ b/common/messages.h
@@ -149,6 +149,15 @@ typedef struct SpiceMsgChannels {
SpiceChannelId channels[0];
} SpiceMsgChannels;
+typedef struct SpiceMsgMainName {
+ uint32_t name_len;
+ uint8_t name[0];
+} SpiceMsgMainName;
+
+typedef struct SpiceMsgMainUuid {
+ uint8_t uuid[16];
+} SpiceMsgMainUuid;
+
typedef struct SpiceMsgMainMouseMode {
uint32_t supported_modes;
uint32_t current_mode;