Revision 012b80d3
b/configure | ||
---|---|---|
2431 | 2431 |
EOF |
2432 | 2432 |
spice_cflags=$($pkg_config --cflags spice-protocol spice-server 2>/dev/null) |
2433 | 2433 |
spice_libs=$($pkg_config --libs spice-protocol spice-server 2>/dev/null) |
2434 |
if $pkg_config --atleast-version=0.5.3 spice-server >/dev/null 2>&1 && \
|
|
2434 |
if $pkg_config --atleast-version=0.6.0 spice-server >/dev/null 2>&1 && \
|
|
2435 | 2435 |
compile_prog "$spice_cflags" "$spice_libs" ; then |
2436 | 2436 |
spice="yes" |
2437 | 2437 |
libs_softmmu="$libs_softmmu $spice_libs" |
b/ui/spice-core.c | ||
---|---|---|
299 | 299 |
exit(1); |
300 | 300 |
} |
301 | 301 |
|
302 |
#if SPICE_SERVER_VERSION >= 0x000600 /* 0.6.0 */ |
|
303 |
|
|
304 | 302 |
static const char *stream_video_names[] = { |
305 | 303 |
[ SPICE_STREAM_VIDEO_OFF ] = "off", |
306 | 304 |
[ SPICE_STREAM_VIDEO_ALL ] = "all", |
... | ... | |
309 | 307 |
#define parse_stream_video(_name) \ |
310 | 308 |
name2enum(_name, stream_video_names, ARRAY_SIZE(stream_video_names)) |
311 | 309 |
|
312 |
#endif /* >= 0.6.0 */ |
|
313 |
|
|
314 | 310 |
static const char *compression_names[] = { |
315 | 311 |
[ SPICE_IMAGE_COMPRESS_OFF ] = "off", |
316 | 312 |
[ SPICE_IMAGE_COMPRESS_AUTO_GLZ ] = "auto_glz", |
... | ... | |
593 | 589 |
} |
594 | 590 |
spice_server_set_zlib_glz_compression(spice_server, wan_compr); |
595 | 591 |
|
596 |
#if SPICE_SERVER_VERSION >= 0x000600 /* 0.6.0 */ |
|
597 |
|
|
598 | 592 |
str = qemu_opt_get(opts, "streaming-video"); |
599 | 593 |
if (str) { |
600 | 594 |
int streaming_video = parse_stream_video(str); |
... | ... | |
606 | 600 |
spice_server_set_playback_compression |
607 | 601 |
(spice_server, qemu_opt_get_bool(opts, "playback-compression", 1)); |
608 | 602 |
|
609 |
#endif /* >= 0.6.0 */ |
|
610 |
|
|
611 | 603 |
qemu_opt_foreach(opts, add_channel, NULL, 0); |
612 | 604 |
|
613 | 605 |
spice_server_init(spice_server, &core_interface); |
Also available in: Unified diff