mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +01:00
The client.h file is part of the public module API, but it also contains definitions that aren't useful for being used in modules. Splitting them out into their own client_priv.h file, which isn't part of the API. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
27 lines
849 B
C
27 lines
849 B
C
/* SPDX-License-Identifier: MIT OR X11
|
|
*
|
|
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
|
|
* Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
*/
|
|
#ifndef _XSERVER_DIX_CLIENT_PRIV_H
|
|
#define _XSERVER_DIX_CLIENT_PRIV_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "client.h"
|
|
|
|
/* Client IDs. Use GetClientPid, GetClientCmdName and GetClientCmdArgs
|
|
* instead of accessing the fields directly. */
|
|
struct _ClientId {
|
|
pid_t pid; /* process ID, -1 if not available */
|
|
const char *cmdname; /* process name, NULL if not available */
|
|
const char *cmdargs; /* process arguments, NULL if not available */
|
|
};
|
|
|
|
struct _Client;
|
|
|
|
/* Initialize and clean up. */
|
|
void ReserveClientIds(struct _Client *client);
|
|
void ReleaseClientIds(struct _Client *client);
|
|
|
|
#endif /* _XSERVER_DIX_CLIENT_PRIV_H */
|