diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-09-03 19:35:09 +0200 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2015-11-03 09:06:55 +0000 |
commit | c9e3b058e452e3e00ae009163a5de66e99987492 (patch) | |
tree | 9a5a1a869506d3b946da7aeca90737e140dbf374 /server/cursor-channel.h | |
parent | fb84cc956f3b5848eed2d128fb9e9d27cc0a4db6 (diff) | |
download | spice-c9e3b058e452e3e00ae009163a5de66e99987492.tar.gz spice-c9e3b058e452e3e00ae009163a5de66e99987492.tar.xz spice-c9e3b058e452e3e00ae009163a5de66e99987492.zip |
server: make cursor channel private
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'server/cursor-channel.h')
-rw-r--r-- | server/cursor-channel.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/server/cursor-channel.h b/server/cursor-channel.h index 67e6e3fa..5d4f8ea2 100644 --- a/server/cursor-channel.h +++ b/server/cursor-channel.h @@ -38,6 +38,8 @@ enum { PIPE_ITEM_TYPE_INVAL_CURSOR_CACHE, }; +typedef struct CursorChannel CursorChannel; + typedef struct CursorItem { uint32_t group_id; int refs; @@ -66,21 +68,6 @@ typedef struct CursorChannelClient { uint32_t cursor_cache_items; } CursorChannelClient; -typedef struct CursorChannel { - CommonChannel common; // Must be the first thing - - CursorItem *item; - int cursor_visible; - SpicePoint16 cursor_position; - uint16_t cursor_trail_length; - uint16_t cursor_trail_frequency; - uint32_t mouse_mode; - -#ifdef RED_STATISTICS - StatNodeRef stat; -#endif -} CursorChannel; - G_STATIC_ASSERT(sizeof(CursorItem) <= QXL_CURSUR_DEVICE_DATA_SIZE); CursorChannel* cursor_channel_new (RedWorker *worker); @@ -88,6 +75,7 @@ void cursor_channel_disconnect (CursorChannel *cursor_channel); void cursor_channel_reset (CursorChannel *cursor); void cursor_channel_process_cmd (CursorChannel *cursor, RedCursorCmd *cursor_cmd, uint32_t group_id); +void cursor_channel_set_mouse_mode(CursorChannel *cursor, uint32_t mode); CursorItem* cursor_item_new (RedCursorCmd *cmd, uint32_t group_id); void cursor_item_unref (QXLInstance *qxl, CursorItem *cursor); |