Prepare Xdmx and Xvfb for modularization by adding appropriate #include

<{dix,dmx}-config.h> to the source files.
This commit is contained in:
Kevin E Martin 2005-07-12 00:52:48 +00:00
parent b7a9a6a035
commit e348ac4b4d
52 changed files with 212 additions and 6 deletions

View File

@ -39,6 +39,10 @@
* This file is not used by the DMX server.
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmxconfig.h"
#include "dmxparse.h"
#include "dmxcompat.h"

View File

@ -37,6 +37,10 @@
* combining that information with command-line configuration parameters. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxinput.h"
#include "dmxconfig.h"

View File

@ -41,6 +41,10 @@
* used in a stand-alone fashion (i.e., independent from the DMX server
* source tree), no dependencies on other DMX routines are made. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -41,6 +41,10 @@
* used in a stand-alone fashion (i.e., independent from the DMX server
* source tree), no dependencies on other DMX routines are made. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmxconfig.h"
#include "dmxparse.h"
#include "dmxprint.h"

View File

@ -33,6 +33,10 @@
*/
%{
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmxparse.h"
#include <string.h>
#include <stdlib.h>

View File

@ -33,6 +33,10 @@
*/
%{
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmxparse.h"
#include "parser.h"
#include <string.h>

View File

@ -33,6 +33,10 @@
**
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include <GL/glx.h>
#include <GL/glxproto.h>

View File

@ -35,6 +35,10 @@
/** \file
* This code queries and modifies the connection block. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxcb.h"
#include "dmxinput.h"

View File

@ -141,7 +141,9 @@ extern int ChangeDeviceNotify;
#include <X11/XKBlib.h>
#ifdef XKB
#include <X11/extensions/XKBproto.h>
#ifndef XKB_IN_SERVER
#define XKB_IN_SERVER
#endif
#include <X11/extensions/XKBsrv.h>
#undef XPointer
#endif

View File

@ -35,6 +35,10 @@
/** \file
* Colormap support. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxsync.h"
#include "dmxcmap.h"

View File

@ -73,6 +73,10 @@
* maintainability for efficiency does not seem justified in this case.
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define DMX_CURSOR_DEBUG 0
#include "dmx.h"

View File

@ -40,6 +40,10 @@
* (and restored at Xdmx server shutdown time).
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxdpms.h"
#include "dmxlog.h"

View File

@ -38,6 +38,10 @@
* in programs/Xserver/Xext. Those programs should only include dmxext.h
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxinit.h"
#include "dmxextension.h"
@ -57,8 +61,8 @@
#include "input/dmxinputinit.h"
#include "windowstr.h"
#include "inputstr.h" /* For DeviceIntRec */
#include "dmxproto.h" /* For DMX_BAD_* */
#include "inputstr.h" /* For DeviceIntRec */
#include <X11/extensions/dmxproto.h> /* For DMX_BAD_* */
#include "cursorstr.h"
/* The default font is declared in dix/globals.c, but is not included in

View File

@ -35,6 +35,10 @@
/** \file
* This file provides support for fonts. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define DMX_FONTPATH_DEBUG 0
#include "dmx.h"

View File

@ -35,6 +35,10 @@
/** \file
* This file provides support for GCs. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxsync.h"
#include "dmxgc.h"

View File

@ -35,6 +35,10 @@
/** \file
* This file provides support for GC operations. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxsync.h"
#include "dmxgc.h"

View File

@ -38,6 +38,10 @@
* Provide expected functions for initialization from the ddx layer and
* global variables for the DMX server. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxinit.h"
#include "dmxsync.h"

View File

@ -39,6 +39,10 @@
* that arequired by the dix layer.
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxlog.h"
#include "dmxinput.h"

View File

@ -36,6 +36,10 @@
* This file encapsulated all of the logging functions that are used by
* DMX for informational, warning, and error messages. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxlog.h"
#include "dmxinput.h"

View File

@ -36,6 +36,10 @@
* Provide support for the RENDER extension (version 0.8).
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxsync.h"
#include "dmxpict.h"

View File

@ -35,6 +35,10 @@
/** \file
* Provides pixmap support. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxsync.h"
#include "dmxpixmap.h"

View File

@ -56,6 +56,10 @@
*
* The routines in this file handle the property management. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxprop.h"
#include "dmxlog.h"

View File

@ -36,6 +36,10 @@
/** \file
* This file provides support for screen initialization. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxsync.h"
#include "dmxshadow.h"

View File

@ -33,6 +33,10 @@
*
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxsync.h"
#include "dmxshadow.h"

View File

@ -43,6 +43,10 @@
* calls and monitoring their latency. This functionality can be turned
* on using the -stat command-line parameter. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxstat.h"
#include "dmxlog.h"

View File

@ -47,6 +47,10 @@
* times faster, with 68 more than 50X faster, 114 more than 10X faster,
* and 181 more than 2X faster. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxsync.h"
#include "dmxstat.h"

View File

@ -35,6 +35,10 @@
/** \file
* This file provides support for visuals. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxvisual.h"

View File

@ -35,6 +35,10 @@
/** \file
* This file provides support for window-related functions. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxsync.h"
#include "dmxwindow.h"

View File

@ -55,6 +55,10 @@
* This file provides a #XCheckNotMaskEvent function that is derived
* from the standard Xlib XCheckMaskEvent function. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define NEED_EVENTS
#include "dmx.h"
#include "ChkNotMaskEv.h"

View File

@ -35,6 +35,10 @@
/** \file
* Generic comma-delimited argument processing. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define DMX_ARG_TEST 0
#include "dmx.h"

View File

@ -37,6 +37,10 @@
* These routines support taking input from devices on the backend
* (output) displays. \see dmxcommon.c. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define DMX_BACKEND_DEBUG 0
#include "dmxinputinit.h"
@ -52,7 +56,7 @@
#include "inputstr.h"
#include "input.h"
#include "keysym.h"
#include <X11/keysym.h>
#include "mipointer.h"
#include "scrnintstr.h"
#include "windowstr.h"

View File

@ -39,6 +39,10 @@
* input devices.
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define DMX_STATE_DEBUG 0
#include "dmxinputinit.h"
@ -50,7 +54,7 @@
#include "inputstr.h"
#include "input.h"
#include "keysym.h"
#include <X11/keysym.h>
#include "mipointer.h"
#include "scrnintstr.h"

View File

@ -39,6 +39,10 @@
* This file implements the console input devices.
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define DMX_CONSOLE_DEBUG 0
#define DMX_WINDOW_DEBUG 0

View File

@ -35,6 +35,10 @@
/** \file
* Provide support and helper functions for input detach and attach. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmxinputinit.h"
#include "dmxextension.h" /* For dmxInputCount */

View File

@ -37,6 +37,10 @@
* server, but that don't actually provide any events. This is useful
* for testing. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmx.h"
#include "dmxinputinit.h"
#include "dmxdummy.h"

View File

@ -66,6 +66,10 @@
* Consortium). (Another example of similar code is provided in
* hw/xfree86/common/xf86Xinput.c.) */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define DMX_EQ_DEBUG 0
#include "dmx.h"

View File

@ -36,6 +36,10 @@
* Provide support and helper functions for enqueing events received by
* the low-level input drivers. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define DMX_EVENTS_DEBUG 0
#include "dmxinputinit.h"
@ -48,7 +52,7 @@
#include "dmxsigio.h"
#include "dmxmap.h"
#include "keysym.h"
#include <X11/keysym.h>
#include "opaque.h"
#include "inputstr.h"
#include "mipointer.h"

View File

@ -37,6 +37,10 @@
* input and lead to the calling of low-level device drivers for
* input. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define DMX_WINDOW_DEBUG 0
#include "dmxinputinit.h"

View File

@ -49,6 +49,10 @@
* XI_Device* names for these routines.
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "dmxinputinit.h"
#include "dmxmap.h"

View File

@ -39,6 +39,10 @@
* for motion buffers for extension devices, and are \a not compatible
* replacements for the mi routines. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "inputstr.h"
#include "dmxinputinit.h"
#include "dmxcommon.h"

View File

@ -36,6 +36,10 @@
*
* Provides an interface for handling SIGIO signals for input devices. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "inputstr.h"
#include "dmxinputinit.h"
#include "dmxsigio.h"

View File

@ -37,6 +37,10 @@
* This file implements support required by the XINPUT extension.
*/
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#define NEED_EVENTS
#include <X11/X.h>
#include <X11/Xproto.h>

View File

@ -123,6 +123,10 @@
* Zborowski, and David Dawes (see the source code for complete
* references). */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
/*****************************************************************************/
/* Define some macros to make it easier to move this file to another
* part of the Xserver tree. All calls to the dmx* layer are #defined

View File

@ -69,6 +69,10 @@
* The code is derived from code by Juliusz Chroboczek and Keith Packard
* (see the source code for complete references). */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "inputstr.h"
#include <X11/Xos.h>
#include <errno.h>

View File

@ -66,6 +66,10 @@
* The code is derived from code by Keith Packard (see the source code
* for complete references). */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "inputstr.h"
#include <X11/Xos.h>
#include <errno.h>

View File

@ -37,6 +37,10 @@
* Routines that are common between #usb-keyboard.c, #usb-mouse.c, and
* #usb-other.c */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "usb-private.h"
#define USB_COMMON_DEBUG 1

View File

@ -72,6 +72,10 @@
* under Linux. The keymap description is derived from code by Thomas
* Roell, Orest Zborowski. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "atKeynames.h"
#include "usb-private.h"

View File

@ -36,6 +36,10 @@
*
* This code implements a low-level device driver for a USB mouse. */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "usb-private.h"
/*****************************************************************************/

View File

@ -37,6 +37,10 @@
* This code implements a low-level device driver for a non-keyboard,
* non-mouse USB device (e.g., a joystick or gamepad). */
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "usb-private.h"
/*****************************************************************************/

View File

@ -28,6 +28,10 @@ from The Open Group.
*/
/* $XFree86: xc/programs/Xserver/hw/vfb/InitInput.c,v 3.9 2001/12/14 19:59:45 dawes Exp $ */
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include <X11/X.h>
#define NEED_EVENTS
#include "mi.h"
@ -38,7 +42,7 @@ from The Open Group.
#include "mibstore.h"
#include "mipointer.h"
#include "lk201kbd.h"
#include "keysym.h"
#include <X11/keysym.h>
Bool
LegalModifier(unsigned int key, DevicePtr pDev)

View File

@ -28,6 +28,10 @@ from The Open Group.
*/
/* $XFree86: xc/programs/Xserver/hw/vfb/InitOutput.c,v 3.25 2003/11/15 04:01:56 dawes Exp $ */
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#if defined(WIN32)
#include <X11/Xwinsock.h>
#endif

View File

@ -52,6 +52,10 @@ SOFTWARE.
#include <dix-config.h>
#endif
#ifdef HAVE_DMX_CONFIG_H
#include <dmx-config.h>
#endif
#include "misc.h"
#include "extension.h"
#include "micmap.h"