(submit/cleanup-api-xfree86) 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>
This commit is contained in:
		
							parent
							
								
									82a4ffc38a
								
							
						
					
					
						commit
						6e009cca75
					
				| 
						 | 
				
			
			@ -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