randr: unexport and document RRModesForScreen()

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 15:38:58 +02:00
parent 6b0f2261e5
commit 60a2d2dc37
2 changed files with 12 additions and 5 deletions

View File

@ -609,11 +609,6 @@ extern _X_EXPORT RRModePtr RRModeGet(xRRModeInfo * modeInfo, const char *name);
extern _X_EXPORT void extern _X_EXPORT void
RRModeDestroy(RRModePtr mode); RRModeDestroy(RRModePtr mode);
/*
* Return a list of modes that are valid for some output in pScreen
*/
extern _X_EXPORT RRModePtr *RRModesForScreen(ScreenPtr pScreen, int *num_ret);
/* /*
* Initialize mode type * Initialize mode type
*/ */

View File

@ -289,4 +289,16 @@ Bool RRCrtcIsLeased(RRCrtcPtr crtc);
*/ */
Bool RROutputIsLeased(RROutputPtr output); Bool RROutputIsLeased(RROutputPtr output);
/*
* Query a list of modes valid for some output in given screen
*
+ The list is allocated by that function and must be freed by caller.
* `num_ret` holds the number of entries (the buffer might be larger)
*
* @param pScreen the screen to query
* @param num_ret return buffer for number of returned modes
* @return pointer to array of RRModePtr's
*/
RRModePtr *RRModesForScreen(ScreenPtr pScreen, int *num_ret);
#endif /* _XSERVER_RANDRSTR_PRIV_H_ */ #endif /* _XSERVER_RANDRSTR_PRIV_H_ */