From 03ea1c6ec05a3f692af76f8d14c3807811e84856 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 14:27:12 +0200 Subject: [PATCH] randr: unexport and document RRCrtcDestroy() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xwayland/xwayland-drm-lease.c | 2 +- randr/randrstr.h | 6 ------ randr/randrstr_priv.h | 7 +++++++ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/hw/xwayland/xwayland-drm-lease.c b/hw/xwayland/xwayland-drm-lease.c index 4faf0eef8..76f2572a6 100644 --- a/hw/xwayland/xwayland-drm-lease.c +++ b/hw/xwayland/xwayland-drm-lease.c @@ -27,13 +27,13 @@ #include #include "os/client_priv.h" +#include "randr/randrstr_priv.h" #ifdef WITH_LIBDRM #include #include #endif -#include "randrstr_priv.h" #include "xwayland-drm-lease.h" #include "xwayland-screen.h" #include "xwayland-output.h" diff --git a/randr/randrstr.h b/randr/randrstr.h index 98907b0ba..93e37f29d 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -595,12 +595,6 @@ extern _X_EXPORT Bool extern _X_EXPORT Bool RRCrtcGammaSetSize(RRCrtcPtr crtc, int size); -/* - * Destroy a Crtc at shutdown - */ -extern _X_EXPORT void - RRCrtcDestroy(RRCrtcPtr crtc); - /* * Initialize crtc type */ diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index 4bdd134b2..1ca3ab28f 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -211,4 +211,11 @@ void RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height); */ RRTransformPtr RRCrtcGetTransform(RRCrtcPtr crtc); +/* + * Destroy a Crtc at shutdown + * + * @param crtc the CRTC to destroy + */ +void RRCrtcDestroy(RRCrtcPtr crtc); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */