summaryrefslogtreecommitdiffstats
path: root/server/spice-server.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-07-10 11:13:53 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-07-29 17:40:48 +0200
commitde66161c6e3f99a1ae140b74d25171b3a24780e9 (patch)
treea13fe01d3fca72a89e9c71b19c810c844d4192f7 /server/spice-server.h
parent04d9d790132127ae3b70dd86c1a7e914498d9dab (diff)
downloadspice-de66161c6e3f99a1ae140b74d25171b3a24780e9.tar.gz
spice-de66161c6e3f99a1ae140b74d25171b3a24780e9.tar.xz
spice-de66161c6e3f99a1ae140b74d25171b3a24780e9.zip
Adjust to new SpiceImageCompress name
This has been renamed to SpiceImageCompression in order to avoid clashes with older spice-server in the SPICE_IMAGE_COMPRESS_ namespace. This commit is a straight rename of SpiceImageCompress to SpiceImageCompression and SPICE_IMAGE_COMPRESS_ to SPICE_IMAGE_COMPRESSION_
Diffstat (limited to 'server/spice-server.h')
-rw-r--r--server/spice-server.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/server/spice-server.h b/server/spice-server.h
index 0c707a72..c2ff61d6 100644
--- a/server/spice-server.h
+++ b/server/spice-server.h
@@ -68,11 +68,19 @@ int spice_server_add_interface(SpiceServer *s,
int spice_server_remove_interface(SpiceBaseInstance *sin);
// Needed for backward API compatibility
-typedef SpiceImageCompress spice_image_compression_t;
+typedef SpiceImageCompression spice_image_compression_t;
+#define SPICE_IMAGE_COMPRESS_INVALID SPICE_IMAGE_COMPRESSION_INVALID
+#define SPICE_IMAGE_COMPRESS_OFF SPICE_IMAGE_COMPRESSION_OFF
+#define SPICE_IMAGE_COMPRESS_AUTO_GLZ SPICE_IMAGE_COMPRESSION_AUTO_GLZ
+#define SPICE_IMAGE_COMPRESS_AUTO_LZ SPICE_IMAGE_COMPRESSION_AUTO_LZ
+#define SPICE_IMAGE_COMPRESS_QUIC SPICE_IMAGE_COMPRESSION_QUIC
+#define SPICE_IMAGE_COMPRESS_GLZ SPICE_IMAGE_COMPRESSION_GLZ
+#define SPICE_IMAGE_COMPRESS_LZ SPICE_IMAGE_COMPRESSION_LZ
+#define SPICE_IMAGE_COMPRESS_LZ4 SPICE_IMAGE_COMPRESSION_LZ4
int spice_server_set_image_compression(SpiceServer *s,
- SpiceImageCompress comp);
-SpiceImageCompress spice_server_get_image_compression(SpiceServer *s);
+ SpiceImageCompression comp);
+SpiceImageCompression spice_server_get_image_compression(SpiceServer *s);
typedef enum {
SPICE_WAN_COMPRESSION_INVALID,