From 17efa1994bd55904257c07c12b6a366456302cce Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 28 Jun 2024 12:29:58 +0200 Subject: [PATCH] (submit/colormap.h) dix: unexport IsMapInstalled() Not used by any driver/module, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/saver.c | 1 + dix/colormap_priv.h | 2 ++ dix/window.c | 1 + include/colormap.h | 3 --- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Xext/saver.c b/Xext/saver.c index b5623042c..3f0a4613a 100644 --- a/Xext/saver.c +++ b/Xext/saver.c @@ -35,6 +35,7 @@ in this Software without prior written authorization from the X Consortium. #include #include +#include "dix/colormap_priv.h" #include "dix/dix_priv.h" #include "miext/extinit_priv.h" diff --git a/dix/colormap_priv.h b/dix/colormap_priv.h index 2aacd6b6f..90ec1600f 100644 --- a/dix/colormap_priv.h +++ b/dix/colormap_priv.h @@ -51,4 +51,6 @@ int FreeColors(ColormapPtr pmap, int client, int count, Pixel *pixels, Pixel mas int StoreColors(ColormapPtr pmap, int count, xColorItem * defs, ClientPtr client); +int IsMapInstalled(Colormap map, WindowPtr pWin); + #endif /* _XSERVER_DIX_COLORMAP_PRIV_H */ diff --git a/dix/window.c b/dix/window.c index 50d819c49..6bef0f1bd 100644 --- a/dix/window.c +++ b/dix/window.c @@ -100,6 +100,7 @@ Equipment Corporation. #include #endif +#include "dix/colormap_priv.h" #include "dix/dix_priv.h" #include "dix/exevents_priv.h" #include "os/auth.h" diff --git a/include/colormap.h b/include/colormap.h index 1cf601ec1..96321b452 100644 --- a/include/colormap.h +++ b/include/colormap.h @@ -74,9 +74,6 @@ typedef CARD32 Pixel; /* moved to screenint.h: typedef struct _ColormapRec *ColormapPtr */ typedef struct _colorResource *colorResourcePtr; -extern _X_EXPORT int IsMapInstalled(Colormap /*map */ , - WindowPtr /*pWin */ ); - extern _X_EXPORT Bool ResizeVisualArray(ScreenPtr /* pScreen */ , int /* new_vis_count */ , DepthPtr /* depth */ );