From 49107319f7ca8be09ea4ce7f694fc4b4f882df99 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 22 May 2025 19:39:33 +0200 Subject: [PATCH] dix: unexport and document MarkClientException() Not supposed to be used by external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- dix/dix_priv.h | 8 ++++++++ dix/resource.c | 1 + include/dix.h | 2 -- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dix/dix_priv.h b/dix/dix_priv.h index 3174561cd..1f8c83688 100644 --- a/dix/dix_priv.h +++ b/dix/dix_priv.h @@ -313,4 +313,12 @@ int EventSuppressForWindow(WindowPtr pWindow, */ ClientPtr NextAvailableClient(void *ospriv); +/* + * @brief mark exception on client - will be closed down later + * + * @param pClient pointer to client that has exception + */ +void MarkClientException(ClientPtr pClient) + _X_ATTRIBUTE_NONNULL_ARG(1); + #endif /* _XSERVER_DIX_PRIV_H */ diff --git a/dix/resource.c b/dix/resource.c index 7542f0c42..242db7443 100644 --- a/dix/resource.c +++ b/dix/resource.c @@ -122,6 +122,7 @@ Equipment Corporation. #include #include "dix/colormap_priv.h" +#include "dix/dix_priv.h" #include "dix/dixgrabs_priv.h" #include "dix/gc_priv.h" #include "dix/registry_priv.h" diff --git a/include/dix.h b/include/dix.h index 85718b724..fe67bd0af 100644 --- a/include/dix.h +++ b/include/dix.h @@ -168,8 +168,6 @@ extern _X_EXPORT void SendErrorToClient(ClientPtr /*client */ , XID /*resId */ , int /*errorCode */ ); -extern _X_EXPORT void MarkClientException(ClientPtr /*client */ ); - /* dixutils.c */ extern _X_EXPORT int dixLookupWindow(WindowPtr *result,