summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2012-03-02 13:45:15 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:56 +0100
commit7220080972f93700f3620497a2ca69b96d587cdb (patch)
treecc813d0d175c058f48a52c553b24e813b7163123
parent36ea49b68619a0d35c2887a1c7a3960dbc4d4fed (diff)
downloadspice-protocol-7220080972f93700f3620497a2ca69b96d587cdb.tar.gz
spice-protocol-7220080972f93700f3620497a2ca69b96d587cdb.tar.xz
spice-protocol-7220080972f93700f3620497a2ca69b96d587cdb.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.
-rw-r--r--spice.proto10
1 files changed, 10 insertions, 0 deletions
diff --git a/spice.proto b/spice.proto
index 0e15fe7..ae27c8d 100644
--- a/spice.proto
+++ b/spice.proto
@@ -134,6 +134,7 @@ channel BaseChannel {
} notify;
Data list; /* the msg body is SpiceSubMessageList */
+
client:
message {
uint32 generation;
@@ -222,6 +223,15 @@ channel MainChannel : BaseChannel {
Empty migrate_end;
+ message {
+ uint32 name_len;
+ uint8 name[name_len];
+ } name;
+
+ message {
+ uint8 uuid[16];
+ } uuid;
+
client:
message {
uint64 cache_size;