diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-03-09 14:29:51 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-03-09 14:29:51 +0100 |
commit | 505f7d8832a961d44ca2bb477c36d5bf8c4e1e7b (patch) | |
tree | a3d30b57a83502e7e564581c6a4d54ead146fc94 /server/red_dispatcher.c | |
parent | 2e1b66143497d58ee503336b1c084f8792697598 (diff) | |
download | spice-505f7d8832a961d44ca2bb477c36d5bf8c4e1e7b.tar.gz spice-505f7d8832a961d44ca2bb477c36d5bf8c4e1e7b.tar.xz spice-505f7d8832a961d44ca2bb477c36d5bf8c4e1e7b.zip |
new libspice api: make image_compression_t part of the public api.
Diffstat (limited to 'server/red_dispatcher.c')
-rw-r--r-- | server/red_dispatcher.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c index 27274c8c..2eb510b7 100644 --- a/server/red_dispatcher.c +++ b/server/red_dispatcher.c @@ -62,7 +62,7 @@ typedef struct RedWorkeState { } RedWorkeState; extern uint32_t streaming_video; -extern image_compression_t image_compression; +extern spice_image_compression_t image_compression; static RedDispatcher *dispatchers = NULL; @@ -388,7 +388,8 @@ void red_dispatcher_set_mm_time(uint32_t mm_time) static inline int calc_compression_level() { ASSERT(streaming_video != STREAM_VIDEO_INVALID); - if ((streaming_video != STREAM_VIDEO_OFF) || (image_compression != IMAGE_COMPRESS_QUIC)) { + if ((streaming_video != STREAM_VIDEO_OFF) || + (image_compression != SPICE_IMAGE_COMPRESS_QUIC)) { return 0; } else { return 1; @@ -403,7 +404,7 @@ void red_dispatcher_on_ic_change() RedWorkeMessage message = RED_WORKER_MESSAGE_SET_COMPRESSION; now->qxl_interface->set_compression_level(now->qxl_interface, compression_level); write_message(now->channel, &message); - send_data(now->channel, &image_compression, sizeof(image_compression_t)); + send_data(now->channel, &image_compression, sizeof(spice_image_compression_t)); now = now->next; } } |