]> git.proxmox.com Git - pve-qemu-kvm.git/blob - debian/patches/modify-query-spice.patch
Allow to query spice ticket.
[pve-qemu-kvm.git] / debian / patches / modify-query-spice.patch
1 Index: new/ui/spice-core.c
2 ===================================================================
3 --- new.orig/ui/spice-core.c 2013-07-23 07:58:22.000000000 +0200
4 +++ new/ui/spice-core.c 2013-07-23 08:52:53.000000000 +0200
5 @@ -541,6 +541,11 @@
6 SPICE_SERVER_VERSION & 0xff);
7 info->compiled_version = g_strdup(version_string);
8
9 + if (auth_passwd) {
10 + info->has_ticket = true;
11 + info->ticket = g_strdup(auth_passwd);
12 + }
13 +
14 if (port) {
15 info->has_port = true;
16 info->port = port;
17 Index: new/qapi-schema.json
18 ===================================================================
19 --- new.orig/qapi-schema.json 2013-07-23 08:57:02.000000000 +0200
20 +++ new/qapi-schema.json 2013-07-23 08:57:36.000000000 +0200
21 @@ -1088,11 +1088,14 @@
22 #
23 # @channels: a list of @SpiceChannel for each active spice channel
24 #
25 +# @ticket: #optional The last ticket set with set_password
26 +#
27 # Since: 0.14.0
28 ##
29 { 'type': 'SpiceInfo',
30 'data': {'enabled': 'bool', 'migrated': 'bool', '*host': 'str', '*port': 'int',
31 '*tls-port': 'int', '*auth': 'str', '*compiled-version': 'str',
32 + '*ticket': 'str',
33 'mouse-mode': 'SpiceQueryMouseMode', '*channels': ['SpiceChannel']} }
34
35 ##