summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-01 14:01:26 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-05 18:12:42 +0100
commit1a3b563171ad81f6b44f6e5ef6f244b169419704 (patch)
tree3f5420391f9a93a7a5adf60b46578739dd4533e2
parentd5edafd28ab762b1b5f663aec449d3e3743f1184 (diff)
Add name & uuid messages on main channel
This allows a client to identify a Spice server. This can be useful to associate data/configuration with this particular server. The corresponding main channel messages are: message { uint8 uuid[16]; } uuid; message { uint32 name_len; uint8 name[name_len] @end @nomarshal; \* \0 terminated *\ } name; Those messages are sent by the server only if the capability SPICE_MAIN_CAP_NAME_AND_UUID is available on the client, and the server has the relevant data.
-rw-r--r--spice/enums.h2
-rw-r--r--spice/protocol.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/spice/enums.h b/spice/enums.h
index 7325180..d2dbfd0 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -367,6 +367,8 @@ enum {
SPICE_MSG_MAIN_AGENT_TOKEN,
SPICE_MSG_MAIN_MIGRATE_SWITCH_HOST,
SPICE_MSG_MAIN_MIGRATE_END,
+ SPICE_MSG_MAIN_NAME,
+ SPICE_MSG_MAIN_UUID,
SPICE_MSG_END_MAIN
};
diff --git a/spice/protocol.h b/spice/protocol.h
index 5c7f286..e3342cb 100644
--- a/spice/protocol.h
+++ b/spice/protocol.h
@@ -119,6 +119,7 @@ enum {
enum {
SPICE_MAIN_CAP_SEMI_SEAMLESS_MIGRATE,
+ SPICE_MAIN_CAP_NAME_AND_UUID,
};
#include <spice/end-packed.h>