reds_num_of_clients() -> reds_get_n_clients()

More consistent with glib naming conventions. Also make the function
static since it's not used outside of this source file.

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

View File

@ -897,7 +897,7 @@ int reds_get_n_channels(RedsState *reds)
}
int reds_num_of_clients(RedsState *reds)
static int reds_get_n_clients(RedsState *reds)
{
return reds ? reds->num_clients : 0;
}
@ -905,7 +905,7 @@ int reds_num_of_clients(RedsState *reds)
SPICE_GNUC_VISIBLE int spice_server_get_num_clients(SpiceServer *s)
{
spice_assert(reds == s);
return reds_num_of_clients(reds);
return reds_get_n_clients(reds);
}
static int secondary_channels[] = {

View File

@ -88,7 +88,6 @@ typedef struct MainMigrateData MainMigrateData;
void reds_marshall_migrate_data(SpiceMarshaller *m);
void reds_fill_channels(RedsState *reds, SpiceMsgChannels *channels_info);
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);
#endif