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:
Frediano Ziglio 2015-12-01 11:08:32 +00:00
parent 7280460b78
commit f31536802a
3 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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)

View File

@ -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,