mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
refactor: Avoid exposing various internal types
Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
@ -39,9 +39,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
typedef int procfd_t;
|
||||
|
||||
/**
|
||||
* Opaque context
|
||||
* Opaque types
|
||||
*/
|
||||
typedef struct GameModeContext GameModeContext;
|
||||
typedef struct GameModeConfig GameModeConfig;
|
||||
|
||||
/**
|
||||
* Return the singleton instance
|
||||
@ -88,6 +89,14 @@ bool game_mode_context_unregister(GameModeContext *self, pid_t pid);
|
||||
*/
|
||||
int game_mode_context_query_status(GameModeContext *self, pid_t pid);
|
||||
|
||||
/**
|
||||
* Query the config of a gamemode context
|
||||
*
|
||||
* @param context A gamemode context
|
||||
* @returns Configuration from the gamemode context
|
||||
*/
|
||||
GameModeConfig *game_mode_config_from_context(const GameModeContext *context);
|
||||
|
||||
/** gamemode-env.c
|
||||
* Provides internal API functions specific to working environment
|
||||
* variables.
|
||||
|
Reference in New Issue
Block a user