From eb6af1652845704fbaea4e9e6bf5350cebf61067 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 15:40:44 +0200 Subject: [PATCH] randr: unexport and document RRModeInit() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randrstr.h | 6 ------ randr/randrstr_priv.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index 1f8ebbf07..7e7343e1f 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -609,12 +609,6 @@ extern _X_EXPORT RRModePtr RRModeGet(xRRModeInfo * modeInfo, const char *name); extern _X_EXPORT void RRModeDestroy(RRModePtr mode); -/* - * Initialize mode type - */ -extern _X_EXPORT Bool - RRModeInit(void); - /* * Initialize mode type error value */ diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index 595fd536b..35e6fadfd 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -301,4 +301,11 @@ Bool RROutputIsLeased(RROutputPtr output); */ RRModePtr *RRModesForScreen(ScreenPtr pScreen, int *num_ret); +/* + * Initialize mode resource type + * + * @return TRUE on success + */ +Bool RRModeInit(void); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */