From cb80660ad1dac9b49b169621f18971391f800908 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 13:34:20 +0200 Subject: [PATCH] randr: unexport and document RRFirstEnabledCrtc() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- present/present.c | 2 ++ randr/randrstr.h | 2 -- randr/randrstr_priv.h | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/present/present.c b/present/present.c index 336816e27..aa265aabf 100644 --- a/present/present.c +++ b/present/present.c @@ -21,6 +21,8 @@ */ #include +#include "randr/randrstr_priv.h" + #include "present_priv.h" #include diff --git a/randr/randrstr.h b/randr/randrstr.h index e92619206..77a48c08d 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -519,8 +519,6 @@ extern _X_EXPORT Bool RRScreenInit(ScreenPtr pScreen); extern _X_EXPORT RROutputPtr RRFirstOutput(ScreenPtr pScreen); -extern _X_EXPORT RRCrtcPtr RRFirstEnabledCrtc(ScreenPtr pScreen); - extern _X_EXPORT Bool RROutputSetNonDesktop(RROutputPtr output, Bool non_desktop); extern _X_EXPORT CARD16 diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index d625ee80a..ab8246299 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -144,4 +144,12 @@ void RRResourcesChanged(ScreenPtr pScreen); */ Bool RRInit(void); +/* + * Retrieve the first enabled CRTC on given screen + * + * @param pScreen the screen to query + * @return pointer to CRTC structure or NULL + */ +RRCrtcPtr RRFirstEnabledCrtc(ScreenPtr pScreen); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */