From 36d8da628380e7a63df893846f96ee608b2e1af8 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Fri, 2 Mar 2012 13:45:15 +0100 Subject: 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. --- server/spice.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/spice.h') 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 #include -#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 -- cgit