Remove extra comments in config that didn't explain anything

This commit is contained in:
Marc Di Luzio 2019-05-22 17:06:56 +01:00
parent 717d6cc003
commit 9d484061ad

View File

@ -80,65 +80,30 @@ bool config_needs_reload(GameModeConfig *self);
void config_destroy(GameModeConfig *self); void config_destroy(GameModeConfig *self);
/* /*
* Get if the client is in the whitelist * Get if the client is in the whitelist or blacklist
* returns false for an empty whitelist * config_get_client_whitelisted returns false for an empty whitelist
*/ */
bool config_get_client_whitelisted(GameModeConfig *self, const char *client); bool config_get_client_whitelisted(GameModeConfig *self, const char *client);
/*
* Get if the client is in the blacklist
*/
bool config_get_client_blacklisted(GameModeConfig *self, const char *client); bool config_get_client_blacklisted(GameModeConfig *self, const char *client);
/* /*
* Get the frequency (in seconds) for the reaper thread * Get the script sets to run at the start or end
*/
long config_get_reaper_frequency(GameModeConfig *self);
/*
* Get whether we want to inhibit the screensaver (defaults to true)
*/
bool config_get_inhibit_screensaver(GameModeConfig *self);
/*
* Get a set of scripts to call when gamemode starts
*/ */
void config_get_gamemode_start_scripts(GameModeConfig *self, void config_get_gamemode_start_scripts(GameModeConfig *self,
char scripts[CONFIG_LIST_MAX][CONFIG_VALUE_MAX]); char scripts[CONFIG_LIST_MAX][CONFIG_VALUE_MAX]);
/*
* Get a set of scripts to call when gamemode ends
*/
void config_get_gamemode_end_scripts(GameModeConfig *self, void config_get_gamemode_end_scripts(GameModeConfig *self,
char scripts[CONFIG_LIST_MAX][CONFIG_VALUE_MAX]); char scripts[CONFIG_LIST_MAX][CONFIG_VALUE_MAX]);
/* /*
* Get the script timout value * Various get methods for config values
*/ */
long config_get_reaper_frequency(GameModeConfig *self);
bool config_get_inhibit_screensaver(GameModeConfig *self);
long config_get_script_timeout(GameModeConfig *self); long config_get_script_timeout(GameModeConfig *self);
/*
* Get the chosen default governor
*/
void config_get_default_governor(GameModeConfig *self, char governor[CONFIG_VALUE_MAX]); void config_get_default_governor(GameModeConfig *self, char governor[CONFIG_VALUE_MAX]);
/*
* Get the chosen desired governor
*/
void config_get_desired_governor(GameModeConfig *self, char governor[CONFIG_VALUE_MAX]); void config_get_desired_governor(GameModeConfig *self, char governor[CONFIG_VALUE_MAX]);
/*
* Get the chosen soft realtime behavior
*/
void config_get_soft_realtime(GameModeConfig *self, char softrealtime[CONFIG_VALUE_MAX]); void config_get_soft_realtime(GameModeConfig *self, char softrealtime[CONFIG_VALUE_MAX]);
/*
* Get the renice value
*/
long config_get_renice_value(GameModeConfig *self); long config_get_renice_value(GameModeConfig *self);
/*
* Get the ioprio value
*/
long config_get_ioprio_value(GameModeConfig *self); long config_get_ioprio_value(GameModeConfig *self);
/* /*