mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
daemon: add game_mode_context_lookup_client method
Like game_mode_context_has_client, but will add a reference to the client, if a match was found.
This commit is contained in:
@ -103,6 +103,14 @@ int game_mode_context_num_clients(GameModeContext *self);
|
||||
*/
|
||||
pid_t *game_mode_context_list_clients(GameModeContext *self, unsigned int *count);
|
||||
|
||||
/**
|
||||
* Lookup up information about a client via the pid;
|
||||
*
|
||||
* @returns A pointer to a GameModeClient struct or NULL in case no client
|
||||
* with the corresponding id could be found. Adds a reference to
|
||||
* GameModeClient that needs to be released.
|
||||
*/
|
||||
GameModeClient *game_mode_context_lookup_client(GameModeContext *self, pid_t client);
|
||||
/**
|
||||
* Register a new game client with the context
|
||||
*
|
||||
|
Reference in New Issue
Block a user