mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
daemon: method to list all registered clients
Return an array of pid_t elements containing the process ids of all registered clients. Memory ownership is transferred to the client and must be freed.
This commit is contained in:
@ -95,6 +95,14 @@ void game_mode_context_destroy(GameModeContext *self);
|
||||
*/
|
||||
int game_mode_context_num_clients(GameModeContext *self);
|
||||
|
||||
/**
|
||||
* List the currently active clients.
|
||||
* @param out holds the number of active clients.
|
||||
*
|
||||
* @returns A array of pid_t or NULL if there are no active clients.
|
||||
*/
|
||||
pid_t *game_mode_context_list_clients(GameModeContext *self, unsigned int *count);
|
||||
|
||||
/**
|
||||
* Register a new game client with the context
|
||||
*
|
||||
|
Reference in New Issue
Block a user