summaryrefslogtreecommitdiffstats
path: root/server/spice.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 /server/spice.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 'server/spice.h')
-rw-r--r--server/spice.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/spice.h b/server/spice.h
index 73976557..151b3db0 100644
--- a/server/spice.h
+++ b/server/spice.h
@@ -22,7 +22,7 @@
#include <sys/socket.h>
#include <spice/qxl_dev.h>
-#define SPICE_SERVER_VERSION 0x000a01 /* release 0.10.1 */
+#define SPICE_SERVER_VERSION 0x000a02 /* release 0.10.2 */
/* interface base type */
@@ -519,4 +519,7 @@ int spice_server_migrate_connect(SpiceServer *s, const char* dest,
int spice_server_migrate_start(SpiceServer *s);
int spice_server_migrate_end(SpiceServer *s, int completed);
+void spice_server_set_name(SpiceServer *s, const char *name);
+void spice_server_set_uuid(SpiceServer *s, const uint8_t uuid[16]);
+
#endif