Add config file parsing

Checks for a gamemode.ini in /usr/share/gamemode/ (or in the cwd for debugging)

	Currently allows for blacklisting and whitelisting clients based on rudimentary needle-haystack executable name checks

	See the example/gamemode.ini file for expected syntax

	Using the BSD licensed inih library (with additional meson.build file)
This commit is contained in:
Marc Di Luzio
2018-03-23 13:30:25 +00:00
parent 142246366f
commit 759cbc3c40
10 changed files with 388 additions and 0 deletions

View File

@ -21,6 +21,7 @@ daemon_sources = [
'daemonize.c',
'dbus_messaging.c',
'governors.c',
'daemon_config.c',
]
executable(
@ -30,6 +31,7 @@ executable(
link_daemon_common,
dep_threads,
dep_systemd,
inih_dependency,
],
include_directories: [
config_h_dir,