(submit/cleanup-api-xfree86) xfree86: modes: move private definitions out of from xf86RandR12.h
public server module API headers shouldn't be clobbered with non-exported definitions, so move them out to private header file. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									211039da66
								
							
						
					
					
						commit
						aa778d6db0
					
				|  | @ -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 | ||||
|  |  | |||
|  | @ -42,7 +42,7 @@ | |||
| 
 | ||||
| #include "xf86cmap.h" | ||||
| #include "xf86Crtc.h" | ||||
| #include "xf86RandR12.h" | ||||
| #include "xf86RandR12_priv.h" | ||||
| 
 | ||||
| typedef struct _xf86RandR12Info { | ||||
|     int virtualX; | ||||
|  |  | |||
|  | @ -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_ */ | ||||
|  |  | |||
|  | @ -0,0 +1,18 @@ | |||
| /* SPDX-License-Identifier: MIT OR X11
 | ||||
|  * | ||||
|  * Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net> | ||||
|  */ | ||||
| #ifndef _XSERVER_XF86RANDR12_PRIV_H_ | ||||
| #define _XSERVER_XF86RANDR12_PRIV_H_ | ||||
| 
 | ||||
| #include <X11/extensions/render.h> | ||||
| 
 | ||||
| #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_ */ | ||||
		Loading…
	
		Reference in New Issue