summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-13 21:15:55 +0200
committerFrediano Ziglio <fziglio@redhat.com>2015-11-05 11:12:29 +0000
commitd29ebe459056aa6307f99063db1625f8e94101fa (patch)
treeb7a34acff8f8b60500b90a2fffe1c1c1638ffc54 /server
parentac53e6a3c3dceaf640cb7832f39a4182b9b79931 (diff)
downloadspice-d29ebe459056aa6307f99063db1625f8e94101fa.tar.gz
spice-d29ebe459056aa6307f99063db1625f8e94101fa.tar.xz
spice-d29ebe459056aa6307f99063db1625f8e94101fa.zip
worker: move DisplayChannel struct
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server')
-rw-r--r--server/display-channel.h32
-rw-r--r--server/red_worker.c32
2 files changed, 32 insertions, 32 deletions
diff --git a/server/display-channel.h b/server/display-channel.h
index c4c55ff7..48e28a62 100644
--- a/server/display-channel.h
+++ b/server/display-channel.h
@@ -327,4 +327,36 @@ MonitorsConfig* monitors_config_new (QXLHead *h
MonitorsConfig * monitors_config_ref (MonitorsConfig *config);
void monitors_config_unref (MonitorsConfig *config);
+struct DisplayChannel {
+ CommonChannel common; // Must be the first thing
+
+ MonitorsConfig *monitors_config;
+
+ uint32_t num_renderers;
+ uint32_t renderers[RED_RENDERER_LAST];
+ uint32_t renderer;
+
+ int enable_jpeg;
+ int jpeg_quality;
+ int enable_zlib_glz_wrap;
+ int zlib_level;
+
+ RedCompressBuf *free_compress_bufs;
+
+#ifdef RED_STATISTICS
+ uint64_t *cache_hits_counter;
+ uint64_t *add_to_cache_counter;
+ uint64_t *non_cache_counter;
+#endif
+#ifdef COMPRESS_STAT
+ stat_info_t lz_stat;
+ stat_info_t glz_stat;
+ stat_info_t quic_stat;
+ stat_info_t jpeg_stat;
+ stat_info_t zlib_glz_stat;
+ stat_info_t jpeg_alpha_stat;
+ stat_info_t lz4_stat;
+#endif
+};
+
#endif /* DISPLAY_CHANNEL_H_ */
diff --git a/server/red_worker.c b/server/red_worker.c
index 1c37dc0f..f317b108 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -343,38 +343,6 @@ struct RedGlzDrawable {
pthread_mutex_t glz_dictionary_list_lock = PTHREAD_MUTEX_INITIALIZER;
Ring glz_dictionary_list = {&glz_dictionary_list, &glz_dictionary_list};
-struct DisplayChannel {
- CommonChannel common; // Must be the first thing
-
- MonitorsConfig *monitors_config;
-
- uint32_t num_renderers;
- uint32_t renderers[RED_RENDERER_LAST];
- uint32_t renderer;
-
- int enable_jpeg;
- int jpeg_quality;
- int enable_zlib_glz_wrap;
- int zlib_level;
-
- RedCompressBuf *free_compress_bufs;
-
-#ifdef RED_STATISTICS
- uint64_t *cache_hits_counter;
- uint64_t *add_to_cache_counter;
- uint64_t *non_cache_counter;
-#endif
-#ifdef COMPRESS_STAT
- stat_info_t lz_stat;
- stat_info_t glz_stat;
- stat_info_t quic_stat;
- stat_info_t jpeg_stat;
- stat_info_t zlib_glz_stat;
- stat_info_t jpeg_alpha_stat;
- stat_info_t lz4_stat;
-#endif
-};
-
typedef struct _Drawable _Drawable;
struct _Drawable {
union {