From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRv7m-0001F3-TY for qemu-devel@nongnu.org; Wed, 28 Nov 2018 03:23:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRv7i-0002Zf-LM for qemu-devel@nongnu.org; Wed, 28 Nov 2018 03:23:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39032) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gRv7i-0002Z7-G6 for qemu-devel@nongnu.org; Wed, 28 Nov 2018 03:23:06 -0500 From: Frediano Ziglio Date: Wed, 28 Nov 2018 08:22:42 +0000 Message-Id: <20181128082243.29841-1-fziglio@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] spice: Use new SpiceImageCompression definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: spice-devel@lists.freedesktop.org, Gerd Hoffmann Cc: qemu-devel@nongnu.org, Frediano Ziglio 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..9d45d895ed 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); -- 2.17.2