From c9a1dd9281f92f5cb7205d73487c9e30f6b0de8f Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 14:42:01 +0200 Subject: [PATCH] randr: unexport and document RRHasScanoutPixmap() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/ramdac/xf86HWCurs.c | 2 +- randr/randrstr.h | 6 ------ randr/randrstr_priv.h | 8 ++++++++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/hw/xfree86/ramdac/xf86HWCurs.c b/hw/xfree86/ramdac/xf86HWCurs.c index 4ccd55eaa..e2812f9e9 100644 --- a/hw/xfree86/ramdac/xf86HWCurs.c +++ b/hw/xfree86/ramdac/xf86HWCurs.c @@ -7,6 +7,7 @@ #include #include "dix/colormap_priv.h" +#include "randr/randrstr_priv.h" #include "misc.h" #include "xf86.h" @@ -18,7 +19,6 @@ #include "cursorstr.h" #include "mi.h" #include "mipointer.h" -#include "randrstr.h" #include "xf86CursorPriv.h" #include "servermd.h" diff --git a/randr/randrstr.h b/randr/randrstr.h index bb1471012..132995106 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -595,12 +595,6 @@ extern _X_EXPORT Bool extern _X_EXPORT Bool RRCrtcGammaSetSize(RRCrtcPtr crtc, int size); -/* - * Return if the screen has any scanout_pixmap's attached - */ -extern _X_EXPORT Bool - RRHasScanoutPixmap(ScreenPtr pScreen); - /* rrdispatch.c */ extern _X_EXPORT Bool RRClientKnowsRates(ClientPtr pClient); diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index b0c0d4d8f..f36fa1189 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -242,4 +242,12 @@ void RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc); */ Bool RRReplaceScanoutPixmap(DrawablePtr pDrawable, PixmapPtr pPixmap, Bool enable); +/* + * Check whether given screen has any scanout pixmap attached + * + * @param pScreen the screen to check + * @return TRUE if the screen has a scanout pixmap attached + */ +Bool RRHasScanoutPixmap(ScreenPtr pScreen); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */