From ece72f50fe55381dbfc2d3c8d64721fe197b272a Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 28 Jun 2024 11:17:27 +0200 Subject: [PATCH] dix: unexport TellLostMap() Not used by any driver/module, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- dix/colormap_priv.h | 3 +++ hw/kdrive/src/kcmap.c | 2 ++ include/colormap.h | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dix/colormap_priv.h b/dix/colormap_priv.h index 3bcb889b6..0a84c4d92 100644 --- a/dix/colormap_priv.h +++ b/dix/colormap_priv.h @@ -9,6 +9,7 @@ #include "dix/screenint_priv.h" #include "include/colormap.h" +#include "include/window.h" typedef struct _CMEntry *EntryPtr; @@ -18,4 +19,6 @@ int CreateColormap(Colormap mid, ScreenPtr pScreen, VisualPtr pVisual, /* should only be called via resource type's destructor */ int FreeColormap(void *pmap, XID mid); +int TellLostMap(WindowPtr pwin, void *value); + #endif /* _XSERVER_DIX_COLORMAP_PRIV_H */ diff --git a/hw/kdrive/src/kcmap.c b/hw/kdrive/src/kcmap.c index 2e65bdde4..2a8020f0e 100644 --- a/hw/kdrive/src/kcmap.c +++ b/hw/kdrive/src/kcmap.c @@ -25,6 +25,8 @@ #endif #include "kdrive.h" +#include "dix/colormap_priv.h" + /* * Put the entire colormap into the DAC */ diff --git a/include/colormap.h b/include/colormap.h index dc558a23e..f91218291 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 TellLostMap(WindowPtr pwin, - void *value); - extern _X_EXPORT int TellGainedMap(WindowPtr pwin, void *value);