diff options
author | Alon Levy <alevy@redhat.com> | 2010-10-31 16:31:14 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-07 21:32:33 +0200 |
commit | 347e32177cd7a563054ac903e1efb193f6ec7b57 (patch) | |
tree | 325974ac49ac33cdf9e127a852cdfe78da31e1e3 /server/reds.h | |
parent | 26c40c4196a6c1b12dc59a794d64fb217b5a7259 (diff) | |
download | spice-347e32177cd7a563054ac903e1efb193f6ec7b57.tar.gz spice-347e32177cd7a563054ac903e1efb193f6ec7b57.tar.xz spice-347e32177cd7a563054ac903e1efb193f6ec7b57.zip |
server: introduce inputs_channel, split from reds.c
Diffstat (limited to 'server/reds.h')
-rw-r--r-- | server/reds.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/reds.h b/server/reds.h index e95aea5e..7f656e3b 100644 --- a/server/reds.h +++ b/server/reds.h @@ -21,6 +21,7 @@ #include <stdint.h> #include <openssl/ssl.h> #include <sys/uio.h> +#include <spice/vd_agent.h> #define __visible__ __attribute__ ((visibility ("default"))) @@ -90,11 +91,18 @@ void reds_set_client_mouse_allowed(int is_client_mouse_allowed, int x_res, int y_res); void reds_register_channel(Channel *channel); void reds_unregister_channel(Channel *channel); +int reds_get_mouse_mode(void); // used by inputs_channel +int reds_get_agent_mouse(void); // used by inputs_channel +int reds_has_vdagent(void); // used by inputs channel +void reds_handle_agent_mouse_event(const VDAgentMouseState *mouse_state); // used by inputs_channel extern struct SpiceCoreInterface *core; extern uint64_t bitrate_per_sec; #define IS_LOW_BANDWIDTH() (bitrate_per_sec < 10 * 1024 * 1024) +// Temporary measures to make splitting reds.c to inputs_channel.c easier +void reds_disconnect(void); + #endif |