123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- #pragma once
- #include <stdbool.h>
- #define CONFIG_LIST_MAX 32
- #define CONFIG_VALUE_MAX 256
- #define IOPRIO_RESET_DEFAULT -1
- #define IOPRIO_DONT_SET -2
- #define IOPRIO_DEFAULT 4
- typedef struct GameModeConfig GameModeConfig;
- GameModeConfig *config_create(void);
- void config_init(GameModeConfig *self);
- void config_reload(GameModeConfig *self);
- bool config_needs_reload(GameModeConfig *self);
- void config_destroy(GameModeConfig *self);
- bool config_get_client_whitelisted(GameModeConfig *self, const char *client);
- bool config_get_client_blacklisted(GameModeConfig *self, const char *client);
- void config_get_gamemode_start_scripts(GameModeConfig *self,
- char scripts[CONFIG_LIST_MAX][CONFIG_VALUE_MAX]);
- void config_get_gamemode_end_scripts(GameModeConfig *self,
- char scripts[CONFIG_LIST_MAX][CONFIG_VALUE_MAX]);
- long config_get_reaper_frequency(GameModeConfig *self);
- bool config_get_inhibit_screensaver(GameModeConfig *self);
- long config_get_script_timeout(GameModeConfig *self);
- void config_get_default_governor(GameModeConfig *self, char governor[CONFIG_VALUE_MAX]);
- void config_get_desired_governor(GameModeConfig *self, char governor[CONFIG_VALUE_MAX]);
- void config_get_igpu_desired_governor(GameModeConfig *self, char governor[CONFIG_VALUE_MAX]);
- float config_get_igpu_power_threshold(GameModeConfig *self);
- void config_get_soft_realtime(GameModeConfig *self, char softrealtime[CONFIG_VALUE_MAX]);
- long config_get_renice_value(GameModeConfig *self);
- long config_get_ioprio_value(GameModeConfig *self);
- bool config_get_disable_splitlock(GameModeConfig *self);
- void config_get_apply_gpu_optimisations(GameModeConfig *self, char value[CONFIG_VALUE_MAX]);
- long config_get_gpu_device(GameModeConfig *self);
- long config_get_nv_core_clock_mhz_offset(GameModeConfig *self);
- long config_get_nv_mem_clock_mhz_offset(GameModeConfig *self);
- long config_get_nv_powermizer_mode(GameModeConfig *self);
- void config_get_amd_performance_level(GameModeConfig *self, char value[CONFIG_VALUE_MAX]);
- void config_get_cpu_park_cores(GameModeConfig *self, char value[CONFIG_VALUE_MAX]);
- void config_get_cpu_pin_cores(GameModeConfig *self, char value[CONFIG_VALUE_MAX]);
- long config_get_require_supervisor(GameModeConfig *self);
- bool config_get_supervisor_whitelisted(GameModeConfig *self, const char *supervisor);
- bool config_get_supervisor_blacklisted(GameModeConfig *self, const char *supervisor);
|