From ed3c2aeeb164443d5cb08d0bdceeda7a3cc792b2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 5 Mar 2024 14:22:57 +0100 Subject: [PATCH] os: unexport DetermineClientPid() and DetermineClientCmd() These aren't used by any drivers/modules, so no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult --- include/client.h | 6 ------ os/client_priv.h | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/client.h b/include/client.h index 8ecd41704..1f3d9065f 100644 --- a/include/client.h +++ b/include/client.h @@ -36,12 +36,6 @@ struct _Client; typedef struct _ClientId *ClientIdPtr; -/* Determine client IDs for caching. Exported on purpose for - * extensions such as SELinux. */ -extern _X_EXPORT pid_t DetermineClientPid(struct _Client *client); -extern _X_EXPORT void DetermineClientCmd(pid_t, const char **cmdname, - const char **cmdargs); - /* Query cached client IDs. Exported on purpose for drivers. */ extern _X_EXPORT pid_t GetClientPid(struct _Client *client); extern _X_EXPORT const char *GetClientCmdName(struct _Client *client); diff --git a/os/client_priv.h b/os/client_priv.h index 176e72045..27dc4f36b 100644 --- a/os/client_priv.h +++ b/os/client_priv.h @@ -24,4 +24,9 @@ struct _Client; void ReserveClientIds(struct _Client *client); void ReleaseClientIds(struct _Client *client); +/* Determine client IDs for caching. Exported on purpose for + * extensions such as SELinux. */ +pid_t DetermineClientPid(struct _Client *client); +void DetermineClientCmd(pid_t, const char **cmdname, const char **cmdargs); + #endif /* _XSERVER_DIX_CLIENT_PRIV_H */