mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-26 02:28:37 +00:00
server: add public spice_server_get_num_clients
This commit is contained in:
parent
9255515c15
commit
0410cccde3
@ -978,6 +978,17 @@ int reds_num_of_channels()
|
||||
return reds ? reds->num_of_channels : 0;
|
||||
}
|
||||
|
||||
int reds_num_of_clients(void)
|
||||
{
|
||||
return reds ? reds->num_clients : 0;
|
||||
}
|
||||
|
||||
SPICE_GNUC_VISIBLE int spice_server_get_num_clients(SpiceServer *s)
|
||||
{
|
||||
ASSERT(reds == s);
|
||||
return reds_num_of_clients();
|
||||
}
|
||||
|
||||
static int secondary_channels[] = {
|
||||
SPICE_CHANNEL_MAIN, SPICE_CHANNEL_DISPLAY, SPICE_CHANNEL_CURSOR, SPICE_CHANNEL_INPUTS};
|
||||
|
||||
|
||||
@ -125,6 +125,7 @@ void reds_fill_channels(SpiceMsgChannels *channels_info);
|
||||
void reds_fill_mig_switch(SpiceMsgMainMigrationSwitchHost *migrate);
|
||||
void reds_mig_release(void);
|
||||
int reds_num_of_channels(void);
|
||||
int reds_num_of_clients(void);
|
||||
#ifdef RED_STATISTICS
|
||||
void reds_update_stat_value(uint32_t value);
|
||||
#endif
|
||||
|
||||
@ -88,5 +88,6 @@ global:
|
||||
spice_server_playback_set_volume;
|
||||
spice_server_record_set_mute;
|
||||
spice_server_record_set_volume;
|
||||
spice_server_get_num_clients;
|
||||
} SPICE_SERVER_0.8.2;
|
||||
|
||||
|
||||
@ -482,4 +482,7 @@ int spice_server_migrate_info(SpiceServer *s, const char* dest,
|
||||
const char* cert_subject);
|
||||
int spice_server_migrate_switch(SpiceServer *s);
|
||||
|
||||
/* server status */
|
||||
int spice_server_get_num_clients(SpiceServer *s);
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user