daemon: getters for properties of GameModeClient

Add getters for all two properties of GameModeCLient: the process
id and the executable path.
This commit is contained in:
Christian Kellner
2019-07-02 17:24:15 +02:00
parent d99af40795
commit 455ea0c72e
2 changed files with 29 additions and 0 deletions

View File

@ -59,6 +59,16 @@ void game_mode_client_unref(GameModeClient *client);
*/
void game_mode_client_ref(GameModeClient *client);
/**
* The process identifier of the client.
*/
pid_t game_mode_client_get_pid(GameModeClient *client);
/**
* The path to the executable of client.
*/
const char *game_mode_client_get_executable(GameModeClient *client);
/**
* Return the singleton instance
*/