summaryrefslogtreecommitdiffstats
path: root/server/dcc.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-25 18:31:39 +0200
committerFabiano Fidêncio <fidencio@redhat.com>2015-02-23 23:00:39 +0100
commit1e206fa0bd76d8113cadc54a89e5e820cf979310 (patch)
tree46eef4425b490108cc1d9942c6f7862cfe43fef5 /server/dcc.h
parent7f7f94fa383bdc44b6fa5ce088725a886f83d966 (diff)
downloadspice-1e206fa0bd76d8113cadc54a89e5e820cf979310.tar.gz
spice-1e206fa0bd76d8113cadc54a89e5e820cf979310.tar.xz
spice-1e206fa0bd76d8113cadc54a89e5e820cf979310.zip
worker: move dcc_add_drawable*
Diffstat (limited to 'server/dcc.h')
-rw-r--r--server/dcc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/server/dcc.h b/server/dcc.h
index e2a99e54..d478be47 100644
--- a/server/dcc.h
+++ b/server/dcc.h
@@ -119,6 +119,17 @@ typedef struct ImageItem {
uint8_t data[0];
} ImageItem;
+typedef struct DrawablePipeItem {
+ RingItem base; /* link for a list of pipe items held by Drawable */
+ PipeItem dpi_pipe_item; /* link for the client's pipe itself */
+ Drawable *drawable;
+ DisplayChannelClient *dcc;
+ uint8_t refs;
+} DrawablePipeItem;
+
+void drawable_pipe_item_unref (DrawablePipeItem *dpi);
+DrawablePipeItem* drawable_pipe_item_ref (DrawablePipeItem *dpi);
+
DisplayChannelClient* dcc_new (DisplayChannel *display,
RedClient *client,
RedsStream *stream,
@@ -153,6 +164,12 @@ void dcc_palette_cache_palette (DisplayCha
uint8_t *flags);
int dcc_pixmap_cache_add (DisplayChannelClient *dcc,
uint64_t id, uint32_t size, int lossy);
+void dcc_add_drawable (DisplayChannelClient *dcc,
+ Drawable *drawable,
+ bool to_tail);
+void dcc_add_drawable_after (DisplayChannelClient *dcc,
+ Drawable *drawable,
+ PipeItem *pos);
typedef struct compress_send_data_t {
void* comp_buf;