diff options
-rw-r--r-- | server/reds.c | 27 | ||||
-rw-r--r-- | server/spice.h | 11 |
2 files changed, 38 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) diff --git a/server/spice.h b/server/spice.h index fc7d5b5b..ef16a6ab 100644 --- a/server/spice.h +++ b/server/spice.h @@ -360,6 +360,17 @@ int spice_server_set_channel_security(SpiceServer *s, const char *channel, int s int spice_server_add_renderer(SpiceServer *s, const char *name); +enum { + SPICE_STREAM_VIDEO_INVALID, + SPICE_STREAM_VIDEO_OFF, + SPICE_STREAM_VIDEO_ALL, + SPICE_STREAM_VIDEO_FILTER +}; + +int spice_server_set_streaming_video(SpiceServer *s, int value); +int spice_server_set_playback_compression(SpiceServer *s, int enable); +int spice_server_set_agent_mouse(SpiceServer *s, int enable); + int spice_server_get_sock_info(SpiceServer *s, struct sockaddr *sa, socklen_t *salen); int spice_server_get_peer_info(SpiceServer *s, struct sockaddr *sa, socklen_t *salen); |