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_ */