mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 07:37:21 +02:00
daemon: expose GameModeClient as opaque struct
First step to making GameModeClient useful outside of gamemode- context.c.
This commit is contained in:
parent
b3cec8d901
commit
2027e981e6
@ -51,11 +51,11 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
* The GameModeClient encapsulates the remote connection, providing a list
|
||||
* form to contain the pid and credentials.
|
||||
*/
|
||||
typedef struct GameModeClient {
|
||||
struct GameModeClient {
|
||||
pid_t pid; /**< Process ID */
|
||||
struct GameModeClient *next; /**<Next client in the list */
|
||||
char executable[PATH_MAX]; /**<Process executable */
|
||||
} GameModeClient;
|
||||
};
|
||||
|
||||
struct GameModeContext {
|
||||
pthread_rwlock_t rwlock; /**<Guard access to the client list */
|
||||
|
@ -43,6 +43,7 @@ typedef int procfd_t;
|
||||
*/
|
||||
typedef struct GameModeContext GameModeContext;
|
||||
typedef struct GameModeConfig GameModeConfig;
|
||||
typedef struct GameModeClient GameModeClient;
|
||||
|
||||
/**
|
||||
* Return the singleton instance
|
||||
|
Loading…
x
Reference in New Issue
Block a user