summaryrefslogtreecommitdiffstats
path: root/server/main_channel.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/main_channel.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/main_channel.h')
-rw-r--r--server/main_channel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/main_channel.h b/server/main_channel.h
index c5d407ec..afff3139 100644
--- a/server/main_channel.h
+++ b/server/main_channel.h
@@ -103,4 +103,7 @@ int main_channel_migrate_connect(MainChannel *main_channel, RedsMigSpice *mig_ta
void main_channel_migrate_cancel_wait(MainChannel *main_chan);
/* returns the number of clients for which SPICE_MSG_MAIN_MIGRATE_END was sent*/
int main_channel_migrate_complete(MainChannel *main_chan, int success);
+void main_channel_push_name(MainChannelClient *mcc, const char *name);
+void main_channel_push_uuid(MainChannelClient *mcc, const uint8_t uuid[16]);
+
#endif