From 689de526a4b48a74e1aa1913771578e9583526d3 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 23 May 2025 10:42:05 +0200 Subject: [PATCH] dix: unexport and document ClientIsAsleep() 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 | 9 +++++++++ include/dix.h | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dix/dix_priv.h b/dix/dix_priv.h index f7164f3fc..80739e8ce 100644 --- a/dix/dix_priv.h +++ b/dix/dix_priv.h @@ -365,4 +365,13 @@ int ClientSignalAll(ClientPtr pClient, ClientSleepProcPtr func, void *closure) void ClientWakeup(ClientPtr pclient) _X_ATTRIBUTE_NONNULL_ARG(1); +/* + * @brief check whether client is asleep + * + * @param pClient pointer to client structure + * @return TRUE if client is sleeping and has no work to do + */ +Bool ClientIsAsleep(ClientPtr pClient) + _X_ATTRIBUTE_NONNULL_ARG(1); + #endif /* _XSERVER_DIX_PRIV_H */ diff --git a/include/dix.h b/include/dix.h index c94b09859..091b05901 100644 --- a/include/dix.h +++ b/include/dix.h @@ -216,8 +216,6 @@ extern _X_EXPORT Bool QueueWorkProc(Bool (*function)(ClientPtr clientUnused, ClientPtr client, void *closure); -extern _X_EXPORT Bool ClientIsAsleep(ClientPtr /*client */ ); - extern _X_EXPORT void SendGraphicsExpose(ClientPtr /*client */ , RegionPtr /*pRgn */ , XID /*drawable */ ,