Received: from eggs.gnu.org ([2001:4830:134:3::10]:47707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Afu-0006Nx-GD for qemu-devel@nongnu.org; Thu, 08 Jan 2015 05:50:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9Afn-0001mO-S3 for qemu-devel@nongnu.org; Thu, 08 Jan 2015 05:50:46 -0500 Received: from mail.nologin.es ([62.82.228.235]:47326 helo=nologin.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Afn-0001jY-Gi for qemu-devel@nongnu.org; Thu, 08 Jan 2015 05:50:39 -0500 From: Javier Celaya Date: Thu, 08 Jan 2015 11:50:13 +0100 Message-ID: <1508539.cfTQauU1Ry@javinlg> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: [Qemu-devel] [PATCH] [RFC] LZ4 compression option for SPICE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: spice-devel , flex.dev@nologin.es, Gerd Hoffmann , Anthony Liguori Hello Recently, SPICE included the lz4 compression algorithm. This patch adds a command line option to select it. However, SPICE_IMAGE_COMPRESS_LZ4 did not exist before the commit that added this compression algorithm, so it should be guarded with conditional compilation. How do you think this should be done? Wait for the next stable version of spice-server and check for SPICE_SERVER_VERSION? Or add a specific flag? Thank you --- ui/spice-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/spice-core.c b/ui/spice-core.c index 6467fa4..fb6534e 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -359,6 +359,7 @@ static const char *compression_names[] = { [ SPICE_IMAGE_COMPRESS_QUIC ] = "quic", [ SPICE_IMAGE_COMPRESS_GLZ ] = "glz", [ SPICE_IMAGE_COMPRESS_LZ ] = "lz", + [ SPICE_IMAGE_COMPRESS_LZ4 ] = "lz4", }; #define parse_compression(_name) \ parse_name(_name, "image compression", \ -- 1.9.3