]> git.proxmox.com Git - pve-qemu-kvm.git/commitdiff
Allow to query spice ticket.
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 23 Jul 2013 06:54:12 +0000 (08:54 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 23 Jul 2013 06:57:58 +0000 (08:57 +0200)
debian/patches/modify-query-spice.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/modify-query-spice.patch b/debian/patches/modify-query-spice.patch
new file mode 100644 (file)
index 0000000..38efb04
--- /dev/null
@@ -0,0 +1,35 @@
+Index: new/ui/spice-core.c
+===================================================================
+--- new.orig/ui/spice-core.c   2013-07-23 07:58:22.000000000 +0200
++++ new/ui/spice-core.c        2013-07-23 08:52:53.000000000 +0200
+@@ -541,6 +541,11 @@
+              SPICE_SERVER_VERSION & 0xff);
+     info->compiled_version = g_strdup(version_string);
++    if (auth_passwd) {
++        info->has_ticket = true;
++        info->ticket =  g_strdup(auth_passwd);
++    }
++
+     if (port) {
+         info->has_port = true;
+         info->port = port;
+Index: new/qapi-schema.json
+===================================================================
+--- new.orig/qapi-schema.json  2013-07-23 08:57:02.000000000 +0200
++++ new/qapi-schema.json       2013-07-23 08:57:36.000000000 +0200
+@@ -1088,11 +1088,14 @@
+ #
+ # @channels: a list of @SpiceChannel for each active spice channel
+ #
++# @ticket: #optional The last ticket set with set_password
++#
+ # Since: 0.14.0
+ ##
+ { 'type': 'SpiceInfo',
+   'data': {'enabled': 'bool', 'migrated': 'bool', '*host': 'str', '*port': 'int',
+            '*tls-port': 'int', '*auth': 'str', '*compiled-version': 'str',
++           '*ticket': 'str',
+            'mouse-mode': 'SpiceQueryMouseMode', '*channels': ['SpiceChannel']} }
+ ##
index 68272cb79f027f0ee5a39ab8a239fb5e4cec7076..e2494d8347334af3f7c83fece70d1d08adc69d8d 100644 (file)
@@ -24,3 +24,4 @@ virtio-balloon-fix-query.patch
 set-cpu-model-to-kvm64.patch
 modify-query-machines.patch
 spice-socket.patch
+modify-query-spice.patch