mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 07:29:32 +00:00
worker: move dcc_send & marshallers to dcc-send.c
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
7258e5a688
commit
203b3cdebf
@ -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
2468
server/dcc-send.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -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];
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
2476
server/red_worker.c
2476
server/red_worker.c
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user