daemon: add requester to GameModeClient

Record the requester process id in the GameModeClient struct and
add a getter for it.
This commit is contained in:
Christian Kellner
2019-07-14 22:15:06 +02:00
committed by Alex Smith
parent 288b3a005e
commit cfe0fb4f17
2 changed files with 19 additions and 3 deletions

View File

@ -70,6 +70,11 @@ pid_t game_mode_client_get_pid(GameModeClient *client);
*/
const char *game_mode_client_get_executable(GameModeClient *client);
/**
* The process identifier of the requester.
*/
pid_t game_mode_client_get_requester(GameModeClient *client);
/**
* The time that game mode was requested for the client.
*/