mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
worker: change red_worker_new_channel result to CommonChannel*
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
7280460b78
commit
f31536802a
@ -427,7 +427,7 @@ static void cursor_channel_release_item(RedChannelClient *rcc, PipeItem *item, i
|
||||
CursorChannel* cursor_channel_new(RedWorker *worker)
|
||||
{
|
||||
CursorChannel *cursor_channel;
|
||||
RedChannel *channel = NULL;
|
||||
CommonChannel *channel = NULL;
|
||||
ChannelCbs cbs = {
|
||||
.on_disconnect = cursor_channel_client_on_disconnect,
|
||||
.send_item = cursor_channel_send_item,
|
||||
|
||||
@ -638,7 +638,7 @@ CommonChannelClient *common_channel_new_client(CommonChannel *common,
|
||||
}
|
||||
|
||||
|
||||
RedChannel *red_worker_new_channel(RedWorker *worker, int size,
|
||||
CommonChannel *red_worker_new_channel(RedWorker *worker, int size,
|
||||
const char *name,
|
||||
uint32_t channel_type, int migration_flags,
|
||||
ChannelCbs *channel_cbs,
|
||||
@ -669,7 +669,7 @@ RedChannel *red_worker_new_channel(RedWorker *worker, int size,
|
||||
|
||||
common = (CommonChannel *)channel;
|
||||
common->worker = worker;
|
||||
return channel;
|
||||
return common;
|
||||
}
|
||||
|
||||
static void guest_set_client_capabilities(RedWorker *worker)
|
||||
|
||||
@ -106,7 +106,7 @@ RedMemSlotInfo* red_worker_get_memslot(RedWorker *worker);
|
||||
void red_drawable_unref(RedWorker *worker, RedDrawable *red_drawable,
|
||||
uint32_t group_id);
|
||||
|
||||
RedChannel *red_worker_new_channel(RedWorker *worker, int size,
|
||||
CommonChannel *red_worker_new_channel(RedWorker *worker, int size,
|
||||
const char *name,
|
||||
uint32_t channel_type, int migration_flags,
|
||||
ChannelCbs *channel_cbs,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user