xfree86: xf86Config: consolidate xf86configptr declarations
Instead of having several separate exern declarations in various source files, using one central one xf86Config.h Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									7bf63fdf55
								
							
						
					
					
						commit
						fe9662435d
					
				| 
						 | 
				
			
			@ -37,12 +37,10 @@
 | 
			
		|||
#include "xf86Parser.h"
 | 
			
		||||
#include "xf86str.h"
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_PARSER_DECLS
 | 
			
		||||
/*
 | 
			
		||||
 * global structure that holds the result of parsing the config file
 | 
			
		||||
 */
 | 
			
		||||
extern XF86ConfigPtr xf86configptr;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
typedef enum _ConfigStatus {
 | 
			
		||||
    CONFIG_OK = 0,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,6 +34,7 @@
 | 
			
		|||
 | 
			
		||||
#include "xf86.h"
 | 
			
		||||
#include "xf86DDC_priv.h"
 | 
			
		||||
#include "xf86Config.h"
 | 
			
		||||
#include "xf86Crtc.h"
 | 
			
		||||
#include "xf86Modes.h"
 | 
			
		||||
#include "xf86Opt_priv.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -460,8 +461,6 @@ xf86CrtcSetOrigin(xf86CrtcPtr crtc, int x, int y)
 | 
			
		|||
 * Output functions
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
extern XF86ConfigPtr xf86configptr;
 | 
			
		||||
 | 
			
		||||
typedef enum {
 | 
			
		||||
    OPTION_PREFERRED_MODE,
 | 
			
		||||
    OPTION_ZOOM_MODES,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,11 +30,11 @@
 | 
			
		|||
#endif
 | 
			
		||||
 | 
			
		||||
#include <libxcvt/libxcvt.h>
 | 
			
		||||
 | 
			
		||||
#include "xf86Config.h"
 | 
			
		||||
#include "xf86Modes.h"
 | 
			
		||||
#include "xf86Priv.h"
 | 
			
		||||
 | 
			
		||||
extern XF86ConfigPtr xf86configptr;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Calculates the horizontal sync rate of a mode.
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue