From cc8e32ef5e6599531b58001745c42a128d32e2e6 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 16:16:18 +0200 Subject: [PATCH] randr: unexport and document RRProviderCreate() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randrstr.h | 4 ---- randr/randrstr_priv.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index 2686ef28b..998e33759 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -675,10 +675,6 @@ RRConfigureOutputProperty(RROutputPtr output, Atom property, /* rrprovider.c */ #define PRIME_SYNC_PROP "PRIME Synchronization" -extern _X_EXPORT RRProviderPtr -RRProviderCreate(ScreenPtr pScreen, const char *name, - int nameLength); - extern _X_EXPORT void RRProviderDestroy (RRProviderPtr provider); diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index 786535ad1..5389878d0 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -390,4 +390,15 @@ Bool RRProviderInit(void); */ void RRProviderInitErrorValue(void); +/* + * Create / allocate new provider structure + * + * @param pScreen the screen the provider belongs to + * @param name name of the provider (counted string) + * @param nameLen size of the provider name + * @return new provider structure, or NULL on failure + */ +RRProviderPtr RRProviderCreate(ScreenPtr pScreen, const char *name, + int nameLen); + #endif /* _XSERVER_RANDRSTR_PRIV_H_ */