summaryrefslogtreecommitdiffstats
path: root/server/cursor-channel.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2015-10-29 16:54:46 -0500
committerFrediano Ziglio <fziglio@redhat.com>2015-11-02 16:02:23 +0000
commitfb84cc956f3b5848eed2d128fb9e9d27cc0a4db6 (patch)
tree767ed6860d69354c3c9bcd9ccaf91f90d26b877c /server/cursor-channel.h
parent7198a0643385f0f42a0f39cd866c300c07bef5b1 (diff)
downloadspice-fb84cc956f3b5848eed2d128fb9e9d27cc0a4db6.tar.gz
spice-fb84cc956f3b5848eed2d128fb9e9d27cc0a4db6.tar.xz
spice-fb84cc956f3b5848eed2d128fb9e9d27cc0a4db6.zip
Move pipe item enumerations out of red_worker.h
Move the cursor-specific pipe item types to cursor-channel.h, and the display-specific types to red_worker.c. Only leave the common definitions in red_worker.h. This prepares for splitting the display channel into a separate file. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'server/cursor-channel.h')
-rw-r--r--server/cursor-channel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/cursor-channel.h b/server/cursor-channel.h
index 293cfc18..67e6e3fa 100644
--- a/server/cursor-channel.h
+++ b/server/cursor-channel.h
@@ -32,6 +32,12 @@
#define CURSOR_CACHE_HASH_MASK (CURSOR_CACHE_HASH_SIZE - 1)
#define CURSOR_CACHE_HASH_KEY(id) ((id) & CURSOR_CACHE_HASH_MASK)
+enum {
+ PIPE_ITEM_TYPE_CURSOR = PIPE_ITEM_TYPE_COMMON_LAST,
+ PIPE_ITEM_TYPE_CURSOR_INIT,
+ PIPE_ITEM_TYPE_INVAL_CURSOR_CACHE,
+};
+
typedef struct CursorItem {
uint32_t group_id;
int refs;