Implement game_mode_query_status_for as well

This commit is contained in:
Marc Di Luzio
2019-02-09 16:09:11 +00:00
parent 1b96111afc
commit c2f7e971c6
5 changed files with 99 additions and 0 deletions

View File

@ -111,6 +111,17 @@ int game_mode_context_register_by_pid(GameModeContext *self, pid_t callerpid, pi
*/
int game_mode_context_unregister_by_pid(GameModeContext *self, pid_t callerpid, pid_t gamepid);
/**
* Query the current status of gamemode for another process
*
* @param pid Process ID for the remote client
* @returns Positive if gamemode is active
* 1 if gamemode is active but the client is not registered
* 2 if gamemode is active and the client is registered
* -2 if this supervisor was rejected
*/
int game_mode_context_query_status_for(GameModeContext *self, pid_t callerpid, pid_t gamepid);
/**
* Query the config of a gamemode context
*