From df8db3c479a453f1d7bf52e34cbe6604762a1a9e Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 15:47:24 +0200 Subject: [PATCH] randr: unexport and document RROutputAddUserMode() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randrstr.h | 3 --- randr/randrstr_priv.h | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index c051f420c..b920dcbc8 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -638,9 +638,6 @@ extern _X_EXPORT Bool RROutputSetModes(RROutputPtr output, RRModePtr * modes, int numModes, int numPreferred); -extern _X_EXPORT int - RROutputAddUserMode(RROutputPtr output, RRModePtr mode); - extern _X_EXPORT int RROutputDeleteUserMode(RROutputPtr output, RRModePtr mode); diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index a50a6e2ea..3bac26890 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -315,4 +315,13 @@ Bool RRModeInit(void); */ void RRModeInitErrorValue(void); +/* + * Add user-given mode to output + * + * @param output the output where to which a mode should be added + * @param mode the mode to add to the output + * @return X error code + */ +int RROutputAddUserMode(RROutputPtr output, RRModePtr mode); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */