worker: move dcc_send & marshallers to dcc-send.c

Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Marc-André Lureau 2013-09-30 13:55:39 +02:00 committed by Frediano Ziglio
parent 7258e5a688
commit 203b3cdebf
7 changed files with 2496 additions and 2462 deletions

View File

@ -140,6 +140,7 @@ libspice_server_la_SOURCES = \
stream.c \
stream.h \
dcc.c \
dcc-send.c \
dcc.h \
display-limits.h \
dcc-encoders.c \

2468
server/dcc-send.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -41,6 +41,8 @@
#define WIDE_CLIENT_ACK_WINDOW 40
#define NARROW_CLIENT_ACK_WINDOW 20
#define MAX_PIPE_SIZE 50
typedef struct WaitForChannels {
SpiceMsgWaitForChannels header;
SpiceWaitForChannel buf[MAX_CACHE_CLIENTS];

View File

@ -22,6 +22,13 @@
static void drawable_draw(DisplayChannel *display, Drawable *drawable);
uint32_t display_channel_generate_uid(DisplayChannel *display)
{
spice_return_val_if_fail(display != NULL, 0);
return ++display->bits_unique;
}
static stat_time_t display_channel_stat_now(DisplayChannel *display)
{
#ifdef RED_WORKER_STAT

View File

@ -165,6 +165,7 @@ struct _Drawable {
struct DisplayChannel {
CommonChannel common; // Must be the first thing
uint32_t bits_unique;
MonitorsConfig *monitors_config;
@ -299,6 +300,7 @@ void display_channel_destroy_surface_wait (DisplayCha
void display_channel_destroy_surfaces (DisplayChannel *display);
void display_channel_destroy_surface (DisplayChannel *display,
uint32_t surface_id);
uint32_t display_channel_generate_uid (DisplayChannel *display);
static inline int validate_surface(DisplayChannel *display, uint32_t surface_id)
{

File diff suppressed because it is too large Load Diff

View File

@ -110,6 +110,8 @@ QXLInstance* red_worker_get_qxl(RedWorker *worker);
RedChannel* red_worker_get_cursor_channel(RedWorker *worker);
RedChannel* red_worker_get_display_channel(RedWorker *worker);
clockid_t red_worker_get_clockid(RedWorker *worker);
RedMemSlotInfo* red_worker_get_memslot(RedWorker *worker);
void red_drawable_unref(RedWorker *worker, RedDrawable *red_drawable,
uint32_t group_id);