main_channel_init() -> main_channel_new()

Rename to make function name more consistent

Acked-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
Jonathon Jongsma 2015-01-21 16:59:11 -06:00 committed by Frediano Ziglio
parent 3881abc081
commit 43a857f2ef
3 changed files with 3 additions and 3 deletions

View File

@ -1161,7 +1161,7 @@ static void main_channel_client_migrate(RedChannelClient *rcc)
red_channel_client_default_migrate(rcc);
}
MainChannel* main_channel_init(void)
MainChannel* main_channel_new(void)
{
RedChannel *channel;
ChannelCbs channel_cbs = { NULL, };

View File

@ -48,7 +48,7 @@ typedef struct MainChannel {
} MainChannel;
MainChannel *main_channel_init(void);
MainChannel *main_channel_new(void);
RedClient *main_channel_get_client_by_link_id(MainChannel *main_chan, uint32_t link_id);
/* This is a 'clone' from the reds.h Channel.link callback to allow passing link_id */
MainChannelClient *main_channel_link(MainChannel *, RedClient *client,

View File

@ -3415,7 +3415,7 @@ static int do_spice_init(RedsState *reds, SpiceCoreInterface *core_interface)
}
#endif
reds->main_channel = main_channel_init();
reds->main_channel = main_channel_new();
reds->inputs_channel = inputs_channel_new();
reds->mouse_mode = SPICE_MOUSE_MODE_SERVER;