From 8104fc115dd5ff43d20bc004e42e7d9a0cb52895 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 22 May 2025 19:51:07 +0200 Subject: [PATCH] dix: unexport and document ClientSleep() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- dix/dix_priv.h | 10 ++++++++++ hw/xfree86/dri2/dri2.c | 1 + include/dix.h | 4 ---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/dix/dix_priv.h b/dix/dix_priv.h index 1f8c83688..0f9078eda 100644 --- a/dix/dix_priv.h +++ b/dix/dix_priv.h @@ -321,4 +321,14 @@ ClientPtr NextAvailableClient(void *ospriv); void MarkClientException(ClientPtr pClient) _X_ATTRIBUTE_NONNULL_ARG(1); +/* + * @brief put a client to sleep + * + * @param pClient the client to put into sleep + * @param func called when client wakes up + * @param closure data passed to the callback function + */ +Bool ClientSleep(ClientPtr pClient, ClientSleepProcPtr func, void *closure) + _X_ATTRIBUTE_NONNULL_ARG(1,2); + #endif /* _XSERVER_DIX_PRIV_H */ diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c index 4ac0e144e..86be22db7 100644 --- a/hw/xfree86/dri2/dri2.c +++ b/hw/xfree86/dri2/dri2.c @@ -36,6 +36,7 @@ #include +#include "dix/dix_priv.h" #include "os/client_priv.h" #ifdef WITH_LIBDRM diff --git a/include/dix.h b/include/dix.h index fe67bd0af..179f16d26 100644 --- a/include/dix.h +++ b/include/dix.h @@ -219,10 +219,6 @@ extern _X_EXPORT Bool QueueWorkProc(Bool (*function)(ClientPtr clientUnused, typedef Bool (*ClientSleepProcPtr) (ClientPtr client, void *closure); -extern _X_EXPORT Bool ClientSleep(ClientPtr client, - ClientSleepProcPtr function, - void *closure); - #ifndef ___CLIENTSIGNAL_DEFINED___ #define ___CLIENTSIGNAL_DEFINED___ extern _X_EXPORT Bool ClientSignal(ClientPtr /*client */ );