From 1e7752f10df1b66c804a87b12990d9a1d9091404 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 16:36:40 +0200 Subject: [PATCH] randr: unexport and document RRProviderAutoConfigGpuScreen() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86Init.c | 2 +- randr/randrstr.h | 3 --- randr/randrstr_priv.h | 8 ++++++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 2c7de0303..9962cf8b9 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -59,6 +59,7 @@ #include "os/cmdline.h" #include "os/ddx_priv.h" #include "os/osdep.h" +#include "randr/randrstr_priv.h" #include "servermd.h" #include "windowstr.h" @@ -82,7 +83,6 @@ #include "xf86InPriv.h" #include "xf86Crtc.h" #include "picturestr.h" -#include "randrstr.h" #include "xf86Bus.h" #include "globals.h" #include "xserver-properties.h" diff --git a/randr/randrstr.h b/randr/randrstr.h index 6cca0b20a..9d02f49af 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -675,9 +675,6 @@ RRConfigureOutputProperty(RROutputPtr output, Atom property, /* rrprovider.c */ #define PRIME_SYNC_PROP "PRIME Synchronization" -extern _X_EXPORT void -RRProviderAutoConfigGpuScreen(ScreenPtr pScreen, ScreenPtr primaryScreen); - extern _X_EXPORT RRPropertyValuePtr RRGetProviderProperty(RRProviderPtr provider, Atom property, Bool pending); diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index eaa655483..8cbf2c8d7 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -425,4 +425,12 @@ void RRProviderDestroy (RRProviderPtr provider); */ void RRDeliverProviderEvent(ClientPtr pClient, WindowPtr pWin, RRProviderPtr provider); +/* + * Auto configure a GPU screen + * + * @param pScreen the GPU screen to configure + * @param primaryScreen the associated primary screen + */ +void RRProviderAutoConfigGpuScreen(ScreenPtr pScreen, ScreenPtr primaryScreen); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */