diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2015-10-30 11:08:25 -0500 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2015-10-30 16:56:13 +0000 |
commit | 2d934ed82e22d3317186e5f63e28c5105b5ea2d2 (patch) | |
tree | 804c9bd74b2586fcefd85a2db1f057308fa79c36 /server/cursor-channel.c | |
parent | f2c8609985beffd4dcbfcf0aa61cd2e468113fe1 (diff) | |
download | spice-2d934ed82e22d3317186e5f63e28c5105b5ea2d2.tar.gz spice-2d934ed82e22d3317186e5f63e28c5105b5ea2d2.tar.xz spice-2d934ed82e22d3317186e5f63e28c5105b5ea2d2.zip |
Make cursor_channel_disconnect a CursorChannel method
The first argument should be CursorChannel* rather than RedChannel*
since it's essentially a CursorChannel method.
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/cursor-channel.c')
-rw-r--r-- | server/cursor-channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/cursor-channel.c b/server/cursor-channel.c index 7ab92857..b9842259 100644 --- a/server/cursor-channel.c +++ b/server/cursor-channel.c @@ -135,8 +135,10 @@ static void red_reset_cursor_cache(RedChannelClient *rcc) red_cursor_cache_reset(RCC_TO_CCC(rcc), CLIENT_CURSOR_CACHE_SIZE); } -void cursor_channel_disconnect(RedChannel *channel) +void cursor_channel_disconnect(CursorChannel *cursor_channel) { + RedChannel *channel = (RedChannel *)cursor_channel; + if (!channel || !red_channel_is_connected(channel)) { return; } |