123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- #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
- typedef struct GameModeConfig GameModeConfig;
- GameModeConfig *config_create(void);
- void config_init(GameModeConfig *self);
- void config_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_reaper_thread_frequency(GameModeConfig *self, long *value);
- 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]);
- 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_soft_realtime(GameModeConfig *self, char softrealtime[CONFIG_VALUE_MAX]);
- void config_get_renice_value(GameModeConfig *self, long *value);
- void config_get_ioprio_value(GameModeConfig *self, int *value);
|