dix: unexport and document NextAvailableClient()

Only called from OS layer, thus should not be exported at all.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-22 19:31:58 +02:00
parent e9351ba7e0
commit 5ae5fa9671
2 changed files with 10 additions and 2 deletions

View File

@ -303,4 +303,14 @@ int EventSuppressForWindow(WindowPtr pWindow,
Bool *checkOptional)
_X_ATTRIBUTE_NONNULL_ARG(1,2,4);
/*
* @brief allocate new ClientRec and initialize it
*
* Returns NULL on allocation failure or when client limit reached.
*
* @param ospriv pointer to OS layer's internal data
* @return pointer to new ClientRec or NULL on failure
*/
ClientPtr NextAvailableClient(void *ospriv);
#endif /* _XSERVER_DIX_PRIV_H */

View File

@ -162,8 +162,6 @@ extern _X_EXPORT void UpdateCurrentTimeIf(void);
*/
_X_EXPORT int dixDestroyPixmap(void *pPixmap, XID unused);
extern _X_EXPORT ClientPtr NextAvailableClient(void *ospriv);
extern _X_EXPORT void SendErrorToClient(ClientPtr /*client */ ,
unsigned int /*majorCode */ ,
unsigned int /*minorCode */ ,