From f6d63f96cd267716a6f75e9904a1d3343a7b4fc5 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 6 Mar 2025 19:10:45 +0100 Subject: [PATCH] dix: unexport and document GetXIDRange() Not used by any drivers (just the xcmisc extension), so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- dix/resource_priv.h | 13 +++++++++++++ include/resource.h | 5 ----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/dix/resource_priv.h b/dix/resource_priv.h index fb8c7256d..b8f8e638d 100644 --- a/dix/resource_priv.h +++ b/dix/resource_priv.h @@ -143,4 +143,17 @@ unsigned int GetXIDList(ClientPtr pClient, unsigned int count, XID *pids); +/* + * @brief retrieve a range of free XIDs for given client + * + * @param client the client to scan + * @param server TRUE if scanning for free server XIDs + * @param minp pointer to result buffer: minimum XID of found range + * @param maxp pointer to result buffer: maximum XID of found range + */ +void GetXIDRange(int client, + Bool server, + XID *minp, + XID *maxp); + #endif /* _XSERVER_DIX_RESOURCE_PRIV_H */ diff --git a/include/resource.h b/include/resource.h index 52358e6b4..4a2a59737 100644 --- a/include/resource.h +++ b/include/resource.h @@ -247,11 +247,6 @@ extern _X_EXPORT int dixLookupResourceByClass(void **result, ClientPtr client, Mask access_mode); -extern _X_EXPORT void GetXIDRange(int /*client */ , - Bool /*server */ , - XID * /*minp */ , - XID * /*maxp */ ); - extern _X_EXPORT RESTYPE lastResourceType; extern _X_EXPORT RESTYPE TypeMask;