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>
This commit is contained in:
Geoffrey McRae 2022-01-04 07:53:17 +00:00 committed by Frediano Ziglio
parent 3d32295f9e
commit cf061597b6
2 changed files with 3 additions and 0 deletions

View File

@ -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...

View File

@ -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);
}