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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-16 14:42:01 +02:00
parent 2c71b5f260
commit c9a1dd9281
3 changed files with 9 additions and 7 deletions

View File

@ -7,6 +7,7 @@
#include <X11/X.h> #include <X11/X.h>
#include "dix/colormap_priv.h" #include "dix/colormap_priv.h"
#include "randr/randrstr_priv.h"
#include "misc.h" #include "misc.h"
#include "xf86.h" #include "xf86.h"
@ -18,7 +19,6 @@
#include "cursorstr.h" #include "cursorstr.h"
#include "mi.h" #include "mi.h"
#include "mipointer.h" #include "mipointer.h"
#include "randrstr.h"
#include "xf86CursorPriv.h" #include "xf86CursorPriv.h"
#include "servermd.h" #include "servermd.h"

View File

@ -595,12 +595,6 @@ extern _X_EXPORT Bool
extern _X_EXPORT Bool extern _X_EXPORT Bool
RRCrtcGammaSetSize(RRCrtcPtr crtc, int size); RRCrtcGammaSetSize(RRCrtcPtr crtc, int size);
/*
* Return if the screen has any scanout_pixmap's attached
*/
extern _X_EXPORT Bool
RRHasScanoutPixmap(ScreenPtr pScreen);
/* rrdispatch.c */ /* rrdispatch.c */
extern _X_EXPORT Bool extern _X_EXPORT Bool
RRClientKnowsRates(ClientPtr pClient); RRClientKnowsRates(ClientPtr pClient);

View File

@ -242,4 +242,12 @@ void RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc);
*/ */
Bool RRReplaceScanoutPixmap(DrawablePtr pDrawable, PixmapPtr pPixmap, Bool enable); 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_ */ #endif /* _XSERVER_RANDRSTR_PRIV_H_ */