[PATCH 28/30] Make GlzSharedDictionary structure private in dcc-encoders.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 server/dcc-encoders.c | 10 ++++++++++
 server/dcc-encoders.h | 11 +----------
 2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/server/dcc-encoders.c b/server/dcc-encoders.c
index b91ddc8..06132ed 100644
--- a/server/dcc-encoders.c
+++ b/server/dcc-encoders.c
@@ -30,6 +30,16 @@
 
 typedef struct GlzDrawableInstanceItem GlzDrawableInstanceItem;
 
+typedef struct GlzSharedDictionary {
+    RingItem base;
+    GlzEncDictContext *dict;
+    uint32_t refs;
+    uint8_t id;
+    pthread_rwlock_t encode_lock;
+    int migrate_freeze;
+    RedClient *client; // channel clients of the same client share the dict
+} GlzSharedDictionary;
+
 /* for each qxl drawable, there may be several instances of lz drawables */
 /* TODO - reuse this stuff for the top level. I just added a second level of multiplicity
  * at the Drawable by keeping a ring, so:
diff --git a/server/dcc-encoders.h b/server/dcc-encoders.h
index 0ee68e9..f41c49a 100644
--- a/server/dcc-encoders.h
+++ b/server/dcc-encoders.h
@@ -34,6 +34,7 @@
 typedef struct RedCompressBuf RedCompressBuf;
 typedef struct RedGlzDrawable RedGlzDrawable;
 typedef struct EncodersData EncodersData;
+typedef struct GlzSharedDictionary GlzSharedDictionary;
 
 void dcc_encoders_init(EncodersData *enc);
 void dcc_encoders_free(EncodersData *enc);
@@ -66,16 +67,6 @@ static inline void compress_buf_free(RedCompressBuf *buf)
     g_free(buf);
 }
 
-typedef struct GlzSharedDictionary {
-    RingItem base;
-    GlzEncDictContext *dict;
-    uint32_t refs;
-    uint8_t id;
-    pthread_rwlock_t encode_lock;
-    int migrate_freeze;
-    RedClient *client; // channel clients of the same client share the dict
-} GlzSharedDictionary;
-
 gboolean dcc_get_glz_dictionary(EncodersData *enc,
                                 struct RedClient *client,
                                 uint8_t id, int window_size);
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]