mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
daemon: make game_mode_client_unref public
So it can be used outside ouf gamemode-context.c.
This commit is contained in:
parent
1a863f32a1
commit
7e10cc3a0b
@ -87,7 +87,6 @@ static GameModeContext instance = { 0 };
|
|||||||
static volatile bool had_context_init = false;
|
static volatile bool had_context_init = false;
|
||||||
|
|
||||||
static GameModeClient *game_mode_client_new(pid_t pid, char *exe);
|
static GameModeClient *game_mode_client_new(pid_t pid, char *exe);
|
||||||
static void game_mode_client_unref(GameModeClient *client);
|
|
||||||
static const GameModeClient *game_mode_context_has_client(GameModeContext *self, pid_t client);
|
static const GameModeClient *game_mode_context_has_client(GameModeContext *self, pid_t client);
|
||||||
static void *game_mode_context_reaper(void *userdata);
|
static void *game_mode_context_reaper(void *userdata);
|
||||||
static void game_mode_context_enter(GameModeContext *self);
|
static void game_mode_context_enter(GameModeContext *self);
|
||||||
@ -625,7 +624,7 @@ static GameModeClient *game_mode_client_new(pid_t pid, char *executable)
|
|||||||
/**
|
/**
|
||||||
* Unref a client and the next element in the list, if non-null.
|
* Unref a client and the next element in the list, if non-null.
|
||||||
*/
|
*/
|
||||||
static void game_mode_client_unref(GameModeClient *client)
|
void game_mode_client_unref(GameModeClient *client)
|
||||||
{
|
{
|
||||||
if (!client) {
|
if (!client) {
|
||||||
return;
|
return;
|
||||||
|
@ -45,6 +45,15 @@ typedef struct GameModeContext GameModeContext;
|
|||||||
typedef struct GameModeConfig GameModeConfig;
|
typedef struct GameModeConfig GameModeConfig;
|
||||||
typedef struct GameModeClient GameModeClient;
|
typedef struct GameModeClient GameModeClient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GameModeClient related functions
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Decrement the usage count of client.
|
||||||
|
*/
|
||||||
|
void game_mode_client_unref(GameModeClient *client);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the singleton instance
|
* Return the singleton instance
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user