daemon: expose GameModeClient as opaque struct

First step to making GameModeClient useful outside of gamemode-
context.c.
This commit is contained in:
Christian Kellner 2019-07-01 17:45:22 +02:00
parent b3cec8d901
commit 2027e981e6
2 changed files with 3 additions and 2 deletions

View File

@ -51,11 +51,11 @@ POSSIBILITY OF SUCH DAMAGE.
* The GameModeClient encapsulates the remote connection, providing a list * The GameModeClient encapsulates the remote connection, providing a list
* form to contain the pid and credentials. * form to contain the pid and credentials.
*/ */
typedef struct GameModeClient { struct GameModeClient {
pid_t pid; /**< Process ID */ pid_t pid; /**< Process ID */
struct GameModeClient *next; /**<Next client in the list */ struct GameModeClient *next; /**<Next client in the list */
char executable[PATH_MAX]; /**<Process executable */ char executable[PATH_MAX]; /**<Process executable */
} GameModeClient; };
struct GameModeContext { struct GameModeContext {
pthread_rwlock_t rwlock; /**<Guard access to the client list */ pthread_rwlock_t rwlock; /**<Guard access to the client list */

View File

@ -43,6 +43,7 @@ typedef int procfd_t;
*/ */
typedef struct GameModeContext GameModeContext; typedef struct GameModeContext GameModeContext;
typedef struct GameModeConfig GameModeConfig; typedef struct GameModeConfig GameModeConfig;
typedef struct GameModeClient GameModeClient;
/** /**
* Return the singleton instance * Return the singleton instance