mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 11:06:18 +00:00
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:
parent
dc7ef0eaa2
commit
30f873d033
@ -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[] = {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user