diff --git a/daemon/gamemode-context.c b/daemon/gamemode-context.c index e0351d6..f2d701a 100644 --- a/daemon/gamemode-context.c +++ b/daemon/gamemode-context.c @@ -57,6 +57,7 @@ POSSIBILITY OF SUCH DAMAGE. struct GameModeClient { _Atomic int refcount; /**executable; } +/** + * The process identifier of the requester. + */ +pid_t game_mode_client_get_requester(GameModeClient *client) +{ + assert(client != NULL); + return client->requester; +} + /** * The time that game mode was requested for the client. */ diff --git a/daemon/gamemode.h b/daemon/gamemode.h index 78418f0..255aafb 100644 --- a/daemon/gamemode.h +++ b/daemon/gamemode.h @@ -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. */