diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2015-07-31 17:29:07 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2015-08-11 17:24:36 +0200 |
commit | 3da1e1ed0ce3fd0892637c96a958017db612a8f1 (patch) | |
tree | 4aa13e620121410aeeda66495e901290c9701059 | |
parent | e3187ebd29ee689fa8679dc56433e0a391c395f2 (diff) | |
download | spice-3da1e1ed0ce3fd0892637c96a958017db612a8f1.tar.gz spice-3da1e1ed0ce3fd0892637c96a958017db612a8f1.tar.xz spice-3da1e1ed0ce3fd0892637c96a958017db612a8f1.zip |
server: use more const CoreInterface
-rw-r--r-- | server/red_channel.c | 4 | ||||
-rw-r--r-- | server/red_channel.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/server/red_channel.c b/server/red_channel.c index 2a273e94..b08848e9 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -1022,7 +1022,7 @@ void red_channel_client_default_migrate(RedChannelClient *rcc) } RedChannel *red_channel_create(int size, - SpiceCoreInterface *core, + const SpiceCoreInterface *core, uint32_t type, uint32_t id, int handle_acks, channel_handle_message_proc handle_message, @@ -1137,7 +1137,7 @@ static int do_nothing_handle_message(RedChannelClient *rcc, } RedChannel *red_channel_create_parser(int size, - SpiceCoreInterface *core, + const SpiceCoreInterface *core, uint32_t type, uint32_t id, int handle_acks, spice_parse_channel_func_t parser, diff --git a/server/red_channel.h b/server/red_channel.h index 24d29fed..bc0347be 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -308,7 +308,7 @@ struct RedChannel { RingItem link; // channels link for reds - SpiceCoreInterface *core; + const SpiceCoreInterface *core; int handle_acks; // RedChannel will hold only connected channel clients (logic - when pushing pipe item to all channel clients, there @@ -353,7 +353,7 @@ struct RedChannel { /* if one of the callbacks should cause disconnect, use red_channel_shutdown and don't * explicitly destroy the channel */ RedChannel *red_channel_create(int size, - SpiceCoreInterface *core, + const SpiceCoreInterface *core, uint32_t type, uint32_t id, int handle_acks, channel_handle_message_proc handle_message, @@ -363,7 +363,7 @@ RedChannel *red_channel_create(int size, /* alternative constructor, meant for marshaller based (inputs,main) channels, * will become default eventually */ RedChannel *red_channel_create_parser(int size, - SpiceCoreInterface *core, + const SpiceCoreInterface *core, uint32_t type, uint32_t id, int handle_acks, spice_parse_channel_func_t parser, |