xfree86: move private definitions out of dri2.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> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1290>
This commit is contained in:
		
							parent
							
								
									00c2a8fb0a
								
							
						
					
					
						commit
						1d3c26446d
					
				|  | @ -42,7 +42,7 @@ | |||
| #include "scrnintstr.h" | ||||
| #include "windowstr.h" | ||||
| #include "dixstruct.h" | ||||
| #include "dri2.h" | ||||
| #include "dri2_priv.h" | ||||
| #include "dri2int.h" | ||||
| #include "damage.h" | ||||
| #include "xf86.h" | ||||
|  |  | |||
|  | @ -46,9 +46,6 @@ typedef struct { | |||
|     void *driverPrivate; | ||||
| } DRI2BufferRec, *DRI2BufferPtr; | ||||
| 
 | ||||
| extern CARD8 dri2_major;        /* version of DRI2 supported by DDX */ | ||||
| extern CARD8 dri2_minor; | ||||
| 
 | ||||
| typedef DRI2BufferRec DRI2Buffer2Rec, *DRI2Buffer2Ptr; | ||||
| typedef void (*DRI2SwapEventPtr) (ClientPtr client, void *data, int type, | ||||
|                                   CARD64 ust, CARD64 msc, CARD32 sbc); | ||||
|  |  | |||
|  | @ -0,0 +1,13 @@ | |||
| /* SPDX-License-Identifier: MIT OR X11
 | ||||
|  * | ||||
|  * Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net> | ||||
|  */ | ||||
| #ifndef _XSERVER_DRI2_PRIV_H_ | ||||
| #define _XSERVER_DRI2_PRIV_H_ | ||||
| 
 | ||||
| #include "dri2.h" | ||||
| 
 | ||||
| extern CARD8 dri2_major;        /* version of DRI2 supported by DDX */ | ||||
| extern CARD8 dri2_minor; | ||||
| 
 | ||||
| #endif /* _XSERVER_DRI2_PRIV_H_ */ | ||||
|  | @ -46,7 +46,7 @@ | |||
| #include "pixmapstr.h" | ||||
| #include "extnsionst.h" | ||||
| #include "xfixes.h" | ||||
| #include "dri2.h" | ||||
| #include "dri2_priv.h" | ||||
| #include "dri2int.h" | ||||
| #include "protocol-versions.h" | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue