From 6b0f2261e59085daab85011250116b9e1c1d0ee5 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 15:31:14 +0200 Subject: [PATCH] randr: unexport and document RROutputIsLeased() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randrstr.h | 3 --- randr/randrstr_priv.h | 8 ++++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index 087c5fa56..dffe381dc 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -595,9 +595,6 @@ extern _X_EXPORT Bool extern _X_EXPORT Bool RRCrtcGammaSetSize(RRCrtcPtr crtc, int size); -extern _X_EXPORT Bool -RROutputIsLeased(RROutputPtr output); - /* rrmode.c */ /* * Find, and if necessary, create a mode diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index fd251baba..931369d1d 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -281,4 +281,12 @@ void RRLeaseFree(RRLeasePtr lease); */ Bool RRCrtcIsLeased(RRCrtcPtr crtc); +/* + * Check whether given output is leased + * + * @param output the output to check + * @return TRUE if theere is any active lease on that output + */ +Bool RROutputIsLeased(RROutputPtr output); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */