diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-08-27 15:35:06 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2010-08-30 16:12:25 +0200 |
commit | 9681ebb671313f585e2f3c35920d0489e752f508 (patch) | |
tree | dfd4242ba80d421a2b65225814016a4926855858 /server/reds.c | |
parent | 94028c134879d981f5a5de24e2e320e41016bcf2 (diff) | |
download | spice-9681ebb671313f585e2f3c35920d0489e752f508.tar.gz spice-9681ebb671313f585e2f3c35920d0489e752f508.tar.xz spice-9681ebb671313f585e2f3c35920d0489e752f508.zip |
Add config functions.
A bunch of configuration functions where never ported forward from
rhel-6 to upstream. Add them so we can add qemu config options for
these settings.
Diffstat (limited to 'server/reds.c')
-rw-r--r-- | server/reds.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/server/reds.c b/server/reds.c index 3ed5ba91..00bfb61e 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3933,6 +3933,33 @@ __visible__ int spice_server_kbd_leds(SpiceKbdInstance *sin, int leds) return 0; } +__visible__ int spice_server_set_streaming_video(SpiceServer *s, int value) +{ + ASSERT(reds == s); + if (value != SPICE_STREAM_VIDEO_OFF && + value != SPICE_STREAM_VIDEO_ALL && + value != SPICE_STREAM_VIDEO_FILTER) + return -1; + streaming_video = value; + red_dispatcher_on_sv_change(); + return 0; +} + +__visible__ int spice_server_set_playback_compression(SpiceServer *s, int enable) +{ + ASSERT(reds == s); + snd_set_playback_compression(enable); + return 0; +} + +__visible__ int spice_server_set_agent_mouse(SpiceServer *s, int enable) +{ + ASSERT(reds == s); + agent_mouse = enable; + reds_update_mouse_mode(); + return 0; +} + __visible__ int spice_server_migrate_info(SpiceServer *s, const char* dest, int port, int secure_port, const char* cert_subject) |