From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3RvX-0005ea-Cg for qemu-devel@nongnu.org; Fri, 02 Mar 2012 07:49:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3RvS-0002NH-MT for qemu-devel@nongnu.org; Fri, 02 Mar 2012 07:49:38 -0500 Received: from mail-ey0-f173.google.com ([209.85.215.173]:56086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3RvS-0002NA-Cw for qemu-devel@nongnu.org; Fri, 02 Mar 2012 07:49:34 -0500 Received: by eaan13 with SMTP id n13so717025eaa.4 for ; Fri, 02 Mar 2012 04:49:32 -0800 (PST) From: "=?UTF-8?q?Marc-Andr=C3=A9=20Lureau?=" Date: Fri, 2 Mar 2012 13:49:22 +0100 Message-Id: <1330692562-21943-1-git-send-email-marcandre.lureau@redhat.com> Subject: [Qemu-devel] [PATCH] spice: set spice uuid and name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= This allows a Spice client to identify a VM --- ui/spice-core.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 1308a3d..8472cdd 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -19,6 +19,7 @@ #include #include +#include "sysemu.h" #include "qemu-common.h" #include "qemu-spice.h" @@ -699,6 +700,11 @@ void qemu_spice_init(void) qemu_opt_foreach(opts, add_channel, NULL, 0); +#if SPICE_SERVER_VERSION >= 0x000a02 /* 0.10.2 */ + spice_server_set_name(spice_server, qemu_name); + spice_server_set_uuid(spice_server, qemu_uuid); +#endif + if (0 != spice_server_init(spice_server, &core_interface)) { fprintf(stderr, "failed to initialize spice server"); exit(1); -- 1.7.7.6