diff options
Diffstat (limited to 'server/display-channel.h')
-rw-r--r-- | server/display-channel.h | 44 |
1 files changed, 41 insertions, 3 deletions
diff --git a/server/display-channel.h b/server/display-channel.h index 7f3ab7c2..5d2eee5e 100644 --- a/server/display-channel.h +++ b/server/display-channel.h @@ -15,20 +15,47 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#ifndef RED_WORKER_CLIENT_H_ -# define RED_WORKER_CLIENT_H_ +#ifndef DISPLAY_CHANNEL_H_ +# define DISPLAY_CHANNEL_H_ #include <setjmp.h> #include "red_worker.h" +#include "reds_stream.h" #include "cache-item.h" #include "pixmap-cache.h" +#ifdef USE_OPENGL +#include "common/ogl_ctx.h" +#include "reds_gl_canvas.h" +#endif /* USE_OPENGL */ #include "reds_sw_canvas.h" #include "glz_encoder_dictionary.h" #include "glz_encoder.h" +#include "stat.h" +#include "reds.h" #include "mjpeg_encoder.h" +#include "red_memslots.h" +#include "red_parse_qxl.h" +#include "red_record_qxl.h" +#include "jpeg_encoder.h" +#ifdef USE_LZ4 +#include "lz4_encoder.h" +#endif +#include "demarshallers.h" +#include "zlib_encoder.h" +#include "red_channel.h" +#include "red_dispatcher.h" +#include "dispatcher.h" +#include "main_channel.h" +#include "migration_protocol.h" +#include "main_dispatcher.h" +#include "spice_server_utils.h" +#include "spice_bitmap_utils.h" +#include "spice_image_cache.h" #include "utils.h" +typedef struct DisplayChannel DisplayChannel; + typedef struct Drawable Drawable; #define PALETTE_CACHE_HASH_SHIFT 8 @@ -36,6 +63,8 @@ typedef struct Drawable Drawable; #define PALETTE_CACHE_HASH_MASK (PALETTE_CACHE_HASH_SIZE - 1) #define PALETTE_CACHE_HASH_KEY(id) ((id) & PALETTE_CACHE_HASH_MASK) +#define CLIENT_PALETTE_CACHE_SIZE 128 + /* Each drawable can refer to at most 3 images: src, brush and mask */ #define MAX_DRAWABLE_PIXMAP_CACHE_ITEMS 3 @@ -199,4 +228,13 @@ struct DisplayChannelClient { uint64_t streams_max_bit_rate; }; -#endif /* RED_WORKER_CLIENT_H_ */ +DisplayChannelClient* dcc_new (DisplayChannel *display, + RedClient *client, + RedsStream *stream, + int mig_target, + uint32_t *common_caps, + int num_common_caps, + uint32_t *caps, + int num_caps); + +#endif /* DISPLAY_CHANNEL_H_ */ |