diff options
author | Geoffrey McRae <geoff@hostfission.com> | 2022-01-04 07:53:17 +0000 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2022-01-04 10:16:19 +0000 |
commit | cf061597b63b5641af9b98b762afdec8514338b0 (patch) | |
tree | 029404e33abf450321ec5d8cadfb56c4011c2e53 | |
parent | 3d32295f9e99054ae1a40d220ccef53a176c8aed (diff) |
Report name/uuid and agent connected tokens support.
A well behaved client implementing the SPICE protocol should check to see
if the server supports the capabilities it needs. This implementation of
the spice-server supports `SPICE_MAIN_CAP_NAME_AND_UUID` and `
SPICE_MAIN_CAP_AGENT_CONNECTED_TOKENS` so it should report this to the
client.
Acked-by: Frediano Ziglio <freddy77@gmail.com>
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | server/main-channel.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -85,5 +85,6 @@ Patches also contributed by Qiuhao Li <Qiuhao.Li@outlook.com> Hunter Sezen <orbea@riseup.net> Simon Chopin <simon.chopin@canonical.com> + Geoffrey McRae <geoff@hostfission.com> ....send patches to get your name here... diff --git a/server/main-channel.cpp b/server/main-channel.cpp index 41716aba..e14a45d5 100644 --- a/server/main-channel.cpp +++ b/server/main-channel.cpp @@ -218,6 +218,8 @@ MainChannel::MainChannel(RedsState *reds): RedChannel(reds, SPICE_CHANNEL_MAIN, 0, RedChannel::MigrateAll) { set_cap(SPICE_MAIN_CAP_SEMI_SEAMLESS_MIGRATE); + set_cap(SPICE_MAIN_CAP_NAME_AND_UUID); + set_cap(SPICE_MAIN_CAP_AGENT_CONNECTED_TOKENS); set_cap(SPICE_MAIN_CAP_SEAMLESS_MIGRATE); } |