randr: unexport and document RRCrtcExists()

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 13:59:56 +02:00
parent f6002ca703
commit bf0ed1306e
3 changed files with 11 additions and 5 deletions

View File

@ -21,6 +21,8 @@
*/ */
#include <dix-config.h> #include <dix-config.h>
#include "randr/randrstr_priv.h"
#include "present_priv.h" #include "present_priv.h"
#include <misync.h> #include <misync.h>
#include <misyncstr.h> #include <misyncstr.h>

View File

@ -554,11 +554,6 @@ RRSetCurrentConfig(ScreenPtr pScreen,
*/ */
extern _X_EXPORT RRCrtcPtr RRCrtcCreate(ScreenPtr pScreen, void *devPrivate); extern _X_EXPORT RRCrtcPtr RRCrtcCreate(ScreenPtr pScreen, void *devPrivate);
/*
* Tests if findCrtc belongs to pScreen or secondary screens
*/
extern _X_EXPORT Bool RRCrtcExists(ScreenPtr pScreen, RRCrtcPtr findCrtc);
/* /*
* Set the allowed rotations on a CRTC * Set the allowed rotations on a CRTC
*/ */

View File

@ -167,4 +167,13 @@ Bool RROutputSetNonDesktop(RROutputPtr output, Bool non_desktop);
*/ */
CARD16 RRVerticalRefresh(xRRModeInfo * mode); CARD16 RRVerticalRefresh(xRRModeInfo * mode);
/*
* Tests if findCrtc belongs to pScreen or secondary screens
*
* @param pScreen the screen to check on
* @param findCrtc the Crtc to check for
* @return TRUE if given CRTC belongs to pScreen / secondard screens
*/
Bool RRCrtcExists(ScreenPtr pScreen, RRCrtcPtr findCrtc);
#endif /* _XSERVER_RANDRSTR_PRIV_H_ */ #endif /* _XSERVER_RANDRSTR_PRIV_H_ */