mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-28 08:01:26 +00:00
remove common_graphics_channel_new_client function
The function was just calling another function with same parameters Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
eef8d0d8a3
commit
5d61659bba
@ -387,14 +387,14 @@ static CursorChannelClient* cursor_channel_client_new(CursorChannel *cursor,
|
||||
spice_return_val_if_fail(!num_caps || caps, NULL);
|
||||
|
||||
CursorChannelClient *ccc =
|
||||
(CursorChannelClient*)common_graphics_channel_new_client(&cursor->common,
|
||||
sizeof(CursorChannelClient),
|
||||
client, stream,
|
||||
FALSE,
|
||||
common_caps,
|
||||
num_common_caps,
|
||||
caps,
|
||||
num_caps);
|
||||
(CursorChannelClient*)red_channel_client_create(sizeof(CursorChannelClient),
|
||||
&cursor->common.base,
|
||||
client, stream,
|
||||
FALSE,
|
||||
num_common_caps,
|
||||
common_caps,
|
||||
num_caps,
|
||||
caps);
|
||||
spice_return_val_if_fail(ccc != NULL, NULL);
|
||||
cursor->common.during_target_migrate = mig_target;
|
||||
|
||||
|
||||
@ -364,11 +364,12 @@ DisplayChannelClient *dcc_new(DisplayChannel *display,
|
||||
{
|
||||
DisplayChannelClient *dcc;
|
||||
|
||||
dcc = (DisplayChannelClient*)common_graphics_channel_new_client(
|
||||
COMMON_GRAPHICS_CHANNEL(display), sizeof(DisplayChannelClient),
|
||||
dcc = (DisplayChannelClient*)red_channel_client_create(
|
||||
sizeof(DisplayChannelClient),
|
||||
&COMMON_GRAPHICS_CHANNEL(display)->base,
|
||||
client, stream, TRUE,
|
||||
common_caps, num_common_caps,
|
||||
caps, num_caps);
|
||||
num_common_caps, common_caps,
|
||||
num_caps, caps);
|
||||
display->common.during_target_migrate = mig_target;
|
||||
dcc->id = display->common.qxl->id;
|
||||
spice_return_val_if_fail(dcc, NULL);
|
||||
|
||||
@ -441,26 +441,6 @@ static int common_channel_config_socket(RedChannelClient *rcc)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
CommonGraphicsChannelClient *common_graphics_channel_new_client(CommonGraphicsChannel *common,
|
||||
int size,
|
||||
RedClient *client,
|
||||
RedsStream *stream,
|
||||
int monitor_latency,
|
||||
uint32_t *common_caps,
|
||||
int num_common_caps,
|
||||
uint32_t *caps,
|
||||
int num_caps)
|
||||
{
|
||||
RedChannelClient *rcc =
|
||||
red_channel_client_create(size, &common->base, client, stream, monitor_latency,
|
||||
num_common_caps, common_caps, num_caps, caps);
|
||||
if (!rcc) {
|
||||
return NULL;
|
||||
}
|
||||
return (CommonGraphicsChannelClient*)rcc;
|
||||
}
|
||||
|
||||
|
||||
CommonGraphicsChannel *red_worker_new_channel(RedWorker *worker, int size,
|
||||
const char *name,
|
||||
uint32_t channel_type, int migration_flags,
|
||||
|
||||
@ -100,14 +100,4 @@ CommonGraphicsChannel *red_worker_new_channel(RedWorker *worker, int size,
|
||||
ChannelCbs *channel_cbs,
|
||||
channel_handle_parsed_proc handle_parsed);
|
||||
|
||||
CommonGraphicsChannelClient *common_graphics_channel_new_client(CommonGraphicsChannel *common,
|
||||
int size,
|
||||
RedClient *client,
|
||||
RedsStream *stream,
|
||||
int monitor_latency,
|
||||
uint32_t *common_caps,
|
||||
int num_common_caps,
|
||||
uint32_t *caps,
|
||||
int num_caps);
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user