daemon-config: Add ioprio configuration option

Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
Kai Krakow
2018-09-30 17:37:54 +02:00
parent a91a2e7739
commit ebf177bebe
4 changed files with 43 additions and 0 deletions

View File

@@ -39,6 +39,12 @@ POSSIBILITY OF SUCH DAMAGE.
#define CONFIG_LIST_MAX 32
#define CONFIG_VALUE_MAX 256
/*
* Special ioprio values
*/
#define IOPRIO_RESET_DEFAULT -1
#define IOPRIO_DONT_SET -2
/*
* Opaque config context type
*/
@@ -113,3 +119,8 @@ void config_get_soft_realtime(GameModeConfig *self, char softrealtime[CONFIG_VAL
* Get the renice value
*/
void config_get_renice_value(GameModeConfig *self, long *value);
/*
* Get the ioprio value
*/
void config_get_ioprio_value(GameModeConfig *self, int *value);