From e7cdaa668d42937760669dab924f8908c925353b Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Tue, 9 Jun 2020 03:51:37 +0100 Subject: [PATCH] cache-item: Move RedCachePipeItem declaration to common-graphics-channel.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pipe items are meant to be used by channel clients, so move declaration where channel clients is. This item is used by both CursorChannelClient and DisplayChannelClient so the CommonGraphicsChannel is the proper place. Signed-off-by: Frediano Ziglio Acked-by: Julien Ropé --- server/cache-item.h | 6 ------ server/common-graphics-channel.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/cache-item.h b/server/cache-item.h index 610d1b8f..e0e1f4c1 100644 --- a/server/cache-item.h +++ b/server/cache-item.h @@ -23,12 +23,6 @@ #include "red-pipe-item.h" -/* pipe item used to release a specific cached item on the client */ -struct RedCachePipeItem { - RedPipeItem base; - uint64_t id; -}; - struct RedCacheItem { RingItem lru_link; RedCacheItem *next; diff --git a/server/common-graphics-channel.h b/server/common-graphics-channel.h index fe235591..c7c91faa 100644 --- a/server/common-graphics-channel.h +++ b/server/common-graphics-channel.h @@ -68,6 +68,12 @@ protected: virtual bool config_socket() override; }; +/* pipe item used to release a specific cached item on the client */ +struct RedCachePipeItem { + RedPipeItem base; + uint64_t id; +}; + #include "pop-visibility.h" #endif /* COMMON_GRAPHICS_CHANNEL_H_ */