reds_num_of_channels() -> reds_get_n_channels()

More consistent with glib naming conventions.

Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
Jonathon Jongsma 2015-01-16 15:10:06 -06:00 committed by Frediano Ziglio
parent 3ead546abb
commit dc7ef0eaa2
3 changed files with 3 additions and 3 deletions

View File

@ -348,7 +348,7 @@ static void main_channel_marshall_channels(RedChannelClient *rcc,
red_channel_client_init_send_data(rcc, SPICE_MSG_MAIN_CHANNELS_LIST, item);
channels_info = (SpiceMsgChannels *)spice_malloc(sizeof(SpiceMsgChannels)
+ reds_num_of_channels(reds) * sizeof(SpiceChannelId));
+ reds_get_n_channels(reds) * sizeof(SpiceChannelId));
reds_fill_channels(reds, channels_info);
spice_marshall_msg_main_channels_list(m, channels_info);
free(channels_info);

View File

@ -891,7 +891,7 @@ void reds_handle_agent_mouse_event(RedsState *reds, const VDAgentMouseState *mou
spice_char_device_write_buffer_add(reds->agent_state.base, char_dev_buf);
}
int reds_num_of_channels(RedsState *reds)
int reds_get_n_channels(RedsState *reds)
{
return reds ? reds->num_of_channels : 0;
}

View File

@ -87,7 +87,7 @@ void reds_client_disconnect(RedsState *reds, RedClient *client);
typedef struct MainMigrateData MainMigrateData;
void reds_marshall_migrate_data(SpiceMarshaller *m);
void reds_fill_channels(RedsState *reds, SpiceMsgChannels *channels_info);
int reds_num_of_channels(RedsState *reds);
int reds_get_n_channels(RedsState *reds);
int reds_num_of_clients(RedsState *reds);
#ifdef RED_STATISTICS
void reds_update_stat_value(uint32_t value);