From patchwork Mon Nov 26 15:30:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frediano Ziglio X-Patchwork-Id: 1003303 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 433W8p1nF3z9s29 for ; Tue, 27 Nov 2018 02:31:06 +1100 (AEDT) Received: from localhost ([::1]:37301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRIql-00007l-Rv for incoming@patchwork.ozlabs.org; Mon, 26 Nov 2018 10:31:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRIqW-00007e-25 for qemu-devel@nongnu.org; Mon, 26 Nov 2018 10:30:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRIqR-0005z1-28 for qemu-devel@nongnu.org; Mon, 26 Nov 2018 10:30:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50052) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gRIqQ-0005wD-TK for qemu-devel@nongnu.org; Mon, 26 Nov 2018 10:30:43 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9458D4E920; Mon, 26 Nov 2018 15:30:41 +0000 (UTC) Received: from fziglio.remote.csb (unknown [10.33.32.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4AD15A843A; Mon, 26 Nov 2018 15:30:40 +0000 (UTC) From: Frediano Ziglio To: spice-devel@lists.freedesktop.org, Gerd Hoffmann Date: Mon, 26 Nov 2018 15:30:36 +0000 Message-Id: <20181126153036.22414-1-fziglio@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 26 Nov 2018 15:30:41 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] spice: Use new SpiceImageCompression definition X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org, Frediano Ziglio Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Definitions were updated by spice-server in patch de66161 included in 0.12.6 released on 12th June 2015. Signed-off-by: Frediano Ziglio --- ui/spice-core.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index ebaae24643..2e6a255a35 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -331,12 +331,12 @@ static const char *stream_video_names[] = { stream_video_names, ARRAY_SIZE(stream_video_names)) static const char *compression_names[] = { - [ SPICE_IMAGE_COMPRESS_OFF ] = "off", - [ SPICE_IMAGE_COMPRESS_AUTO_GLZ ] = "auto_glz", - [ SPICE_IMAGE_COMPRESS_AUTO_LZ ] = "auto_lz", - [ SPICE_IMAGE_COMPRESS_QUIC ] = "quic", - [ SPICE_IMAGE_COMPRESS_GLZ ] = "glz", - [ SPICE_IMAGE_COMPRESS_LZ ] = "lz", + [ SPICE_IMAGE_COMPRESSION_OFF ] = "off", + [ SPICE_IMAGE_COMPRESSION_AUTO_GLZ ] = "auto_glz", + [ SPICE_IMAGE_COMPRESSION_AUTO_LZ ] = "auto_lz", + [ SPICE_IMAGE_COMPRESSION_QUIC ] = "quic", + [ SPICE_IMAGE_COMPRESSION_GLZ ] = "glz", + [ SPICE_IMAGE_COMPRESSION_LZ ] = "lz", }; #define parse_compression(_name) \ parse_name(_name, "image compression", \ @@ -643,7 +643,7 @@ void qemu_spice_init(void) *x509_cert_file = NULL, *x509_cacert_file = NULL; int port, tls_port, addr_flags; - spice_image_compression_t compression; + SpiceImageCompression compression; spice_wan_compression_t wan_compr; bool seamless_migration; @@ -754,7 +754,7 @@ void qemu_spice_init(void) #endif } - compression = SPICE_IMAGE_COMPRESS_AUTO_GLZ; + compression = SPICE_IMAGE_COMPRESSION_AUTO_GLZ; str = qemu_opt_get(opts, "image-compression"); if (str) { compression = parse_compression(str);