From eb297d34432766718166d66be5d9367299e3a710 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 14:36:56 +0200 Subject: [PATCH] randr: unexport and document RRCrtcDetachScanoutPixmap() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/modes/xf86Crtc.c | 2 ++ randr/randrstr.h | 6 ------ randr/randrstr_priv.h | 7 +++++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index c45897365..151030c3a 100644 --- a/hw/xfree86/modes/xf86Crtc.c +++ b/hw/xfree86/modes/xf86Crtc.c @@ -29,6 +29,8 @@ #include #include +#include "randr/randrstr_priv.h" + #include "xf86.h" #include "xf86DDC_priv.h" #include "xf86Crtc.h" diff --git a/randr/randrstr.h b/randr/randrstr.h index 9ae9cf42b..78e114589 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); -/* - * Detach and free a scanout pixmap - */ -extern _X_EXPORT void - RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc); - extern _X_EXPORT Bool RRReplaceScanoutPixmap(DrawablePtr pDrawable, PixmapPtr pPixmap, Bool enable); diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index 5da7105c4..1c154d857 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -229,4 +229,11 @@ Bool RRCrtcInit(void); */ void RRCrtcInitErrorValue(void); +/* + * Detach and free a scanout pixmap + * + * @param crtc the CRTC to act on + */ +void RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */