From 923a63f046879c6b602fa9e41fd48f53932a5f41 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 4 Mar 2025 17:27:28 +0100 Subject: [PATCH] dix: unexport ResizeVisualArray() Not used by any drivers, and shouldn't be used by them. Needs to _X_EXPORT'ed, as long as glx is a separate module. Signed-off-by: Enrico Weigelt, metux IT consult --- composite/compinit.c | 1 + dix/colormap_priv.h | 3 +++ glx/glxscreens.c | 5 ++++- include/colormap.h | 4 ---- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/composite/compinit.c b/composite/compinit.c index e0a565365..5b59bb3fb 100644 --- a/composite/compinit.c +++ b/composite/compinit.c @@ -43,6 +43,7 @@ #include +#include "dix/colormap_priv.h" #include "dix/dix_priv.h" #include "os/osdep.h" diff --git a/dix/colormap_priv.h b/dix/colormap_priv.h index 04a55b07a..b76fd2b34 100644 --- a/dix/colormap_priv.h +++ b/dix/colormap_priv.h @@ -59,4 +59,7 @@ int StoreColors(ColormapPtr pmap, int count, xColorItem * defs, ClientPtr client int IsMapInstalled(Colormap map, WindowPtr pWin); +/* only exported for glx, but should not be used by external drivers */ +_X_EXPORT Bool ResizeVisualArray(ScreenPtr pScreen, int new_vis_count, DepthPtr depth); + #endif /* _XSERVER_DIX_COLORMAP_PRIV_H */ diff --git a/glx/glxscreens.c b/glx/glxscreens.c index ef969fcd6..c2740a424 100644 --- a/glx/glxscreens.c +++ b/glx/glxscreens.c @@ -30,8 +30,11 @@ #include -#include #include +#include + +#include "dix/colormap_priv.h" + #include #include #include diff --git a/include/colormap.h b/include/colormap.h index 216a4c932..48ae0d649 100644 --- a/include/colormap.h +++ b/include/colormap.h @@ -55,8 +55,4 @@ SOFTWARE. typedef CARD32 Pixel; -extern _X_EXPORT Bool ResizeVisualArray(ScreenPtr /* pScreen */ , - int /* new_vis_count */ , - DepthPtr /* depth */ ); - #endif /* CMAP_H */