dix: unexport and document ClientSignalAll()

Not used by any external drivers, so no need to keep it exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-22 20:13:36 +02:00
parent b528301f97
commit 646c76adea
2 changed files with 17 additions and 8 deletions

View File

@ -321,6 +321,8 @@ ClientPtr NextAvailableClient(void *ospriv);
void MarkClientException(ClientPtr pClient) void MarkClientException(ClientPtr pClient)
_X_ATTRIBUTE_NONNULL_ARG(1); _X_ATTRIBUTE_NONNULL_ARG(1);
typedef Bool (*ClientSleepProcPtr) (ClientPtr client, void *closure);
/* /*
* @brief put a client to sleep * @brief put a client to sleep
* *
@ -340,4 +342,19 @@ Bool ClientSleep(ClientPtr pClient, ClientSleepProcPtr func, void *closure)
Bool dixClientSignal(ClientPtr pClient) Bool dixClientSignal(ClientPtr pClient)
_X_ATTRIBUTE_NONNULL_ARG(1); _X_ATTRIBUTE_NONNULL_ARG(1);
#define CLIENT_SIGNAL_ANY ((void *)-1)
/*
* @brief signal to all sleeping clients matching client, func, closure
*
* If any of the client, func and closure parameters may be CLIENT_SIGNAL_ANY,
* so those will be matching any value
*
* @param pClient match for client
* @param func match for callback function
* @param closure match for callback closure
* @return number of matched / queued clients
*/
int ClientSignalAll(ClientPtr pClient, ClientSleepProcPtr func, void *closure)
_X_ATTRIBUTE_NONNULL_ARG(1,2);
#endif /* _XSERVER_DIX_PRIV_H */ #endif /* _XSERVER_DIX_PRIV_H */

View File

@ -216,14 +216,6 @@ extern _X_EXPORT Bool QueueWorkProc(Bool (*function)(ClientPtr clientUnused,
ClientPtr client, ClientPtr client,
void *closure); void *closure);
typedef Bool (*ClientSleepProcPtr) (ClientPtr client,
void *closure);
#define CLIENT_SIGNAL_ANY ((void *)-1)
extern _X_EXPORT int ClientSignalAll(ClientPtr /*client*/,
ClientSleepProcPtr /*function*/,
void * /*closure*/);
extern _X_EXPORT void ClientWakeup(ClientPtr /*client */ ); extern _X_EXPORT void ClientWakeup(ClientPtr /*client */ );
extern _X_EXPORT Bool ClientIsAsleep(ClientPtr /*client */ ); extern _X_EXPORT Bool ClientIsAsleep(ClientPtr /*client */ );