mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-30 17:49:02 +00:00
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:
parent
3ead546abb
commit
dc7ef0eaa2
@ -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);
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user