diff --git a/hw/xfree86/common/xf86cmap.c b/hw/xfree86/common/xf86cmap.c index ca547cc33..3cf556c75 100644 --- a/hw/xfree86/common/xf86cmap.c +++ b/hw/xfree86/common/xf86cmap.c @@ -45,7 +45,7 @@ #include "xf86_OSproc.h" #include "xf86str.h" #include "micmap.h" -#include "xf86RandR12.h" +#include "xf86RandR12_priv.h" #include "xf86Crtc.h" #ifdef XFreeXDGA diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c index 695f42219..994883f3a 100644 --- a/hw/xfree86/modes/xf86RandR12.c +++ b/hw/xfree86/modes/xf86RandR12.c @@ -42,7 +42,7 @@ #include "xf86cmap.h" #include "xf86Crtc.h" -#include "xf86RandR12.h" +#include "xf86RandR12_priv.h" typedef struct _xf86RandR12Info { int virtualX; diff --git a/hw/xfree86/modes/xf86RandR12.h b/hw/xfree86/modes/xf86RandR12.h index 31aaaaf28..e603799be 100644 --- a/hw/xfree86/modes/xf86RandR12.h +++ b/hw/xfree86/modes/xf86RandR12.h @@ -40,9 +40,4 @@ extern _X_EXPORT void xf86RandR12GetOriginalVirtualSize(ScrnInfoPtr pScrn, extern _X_EXPORT Bool xf86RandR12PreInit(ScrnInfoPtr pScrn); extern _X_EXPORT void xf86RandR12TellChanged(ScreenPtr pScreen); -extern void xf86RandR12LoadPalette(ScrnInfoPtr pScrn, int numColors, - int *indices, LOCO *colors, - VisualPtr pVisual); -extern Bool xf86RandR12InitGamma(ScrnInfoPtr pScrn, unsigned gammaSize); - #endif /* _XF86_RANDR_H_ */ diff --git a/hw/xfree86/modes/xf86RandR12_priv.h b/hw/xfree86/modes/xf86RandR12_priv.h new file mode 100644 index 000000000..a3fbab1f6 --- /dev/null +++ b/hw/xfree86/modes/xf86RandR12_priv.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: MIT OR X11 + * + * Copyright © 2024 Enrico Weigelt, metux IT consult + */ +#ifndef _XSERVER_XF86RANDR12_PRIV_H_ +#define _XSERVER_XF86RANDR12_PRIV_H_ + +#include + +#include "randrstr.h" +#include "xf86RandR12.h" + +void xf86RandR12LoadPalette(ScrnInfoPtr pScrn, int numColors, + int *indices, LOCO *colors, + VisualPtr pVisual); +Bool xf86RandR12InitGamma(ScrnInfoPtr pScrn, unsigned gammaSize); + +#endif /* _XSERVER_XF86RANDR12_PRIV_H_ */