Move extension initialisation prototypes into extinit.h
Create extinit.h (and xf86Extensions.h, for Xorg-specific extensions) to hold all our extension initialisation prototypes, rather than duplicating them everywhere. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
b86aa74caf
commit
a1d41e311c
|
@ -38,9 +38,7 @@ from The Open Group.
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include <X11/extensions/bigreqsproto.h>
|
#include <X11/extensions/bigreqsproto.h>
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
|
|
||||||
void BigReqExtensionInit(void);
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcBigReqDispatch(ClientPtr client)
|
ProcBigReqDispatch(ClientPtr client)
|
||||||
|
|
|
@ -39,7 +39,7 @@ Equipment Corporation.
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include <X11/extensions/dpmsproto.h>
|
#include <X11/extensions/dpmsproto.h>
|
||||||
#include "dpmsproc.h"
|
#include "dpmsproc.h"
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcDPMSGetVersion(ClientPtr client)
|
ProcDPMSGetVersion(ClientPtr client)
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#include "geint.h"
|
#include "geint.h"
|
||||||
#include "geext.h"
|
#include "geext.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
#include "extinit.h"
|
||||||
|
|
||||||
DevPrivateKeyRec GEClientPrivateKeyRec;
|
DevPrivateKeyRec GEClientPrivateKeyRec;
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,4 @@ extern _X_EXPORT void GERegisterExtension(int extension,
|
||||||
|
|
||||||
extern _X_EXPORT void GEInitEvent(xGenericEvent *ev, int extension);
|
extern _X_EXPORT void GEInitEvent(xGenericEvent *ev, int extension);
|
||||||
|
|
||||||
extern _X_EXPORT void GEExtensionInit(void);
|
|
||||||
|
|
||||||
#endif /* _GEEXT_H_ */
|
#endif /* _GEEXT_H_ */
|
||||||
|
|
|
@ -59,7 +59,7 @@ Equipment Corporation.
|
||||||
#ifdef COMPOSITE
|
#ifdef COMPOSITE
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#endif
|
#endif
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
#ifdef GLXPROXY
|
#ifdef GLXPROXY
|
||||||
|
|
|
@ -58,7 +58,7 @@ in this Software without prior written authorization from the X Consortium.
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
|
|
||||||
static int ScreenSaverEventBase = 0;
|
static int ScreenSaverEventBase = 0;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "xacestr.h"
|
#include "xacestr.h"
|
||||||
#include "securitysrv.h"
|
#include "securitysrv.h"
|
||||||
#include <X11/extensions/securproto.h>
|
#include <X11/extensions/securproto.h>
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
/* Extension stuff */
|
/* Extension stuff */
|
||||||
|
|
|
@ -44,7 +44,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include <X11/extensions/shapeproto.h>
|
#include <X11/extensions/shapeproto.h>
|
||||||
#include "regionstr.h"
|
#include "regionstr.h"
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
typedef RegionPtr (*CreateDftPtr) (WindowPtr /* pWin */
|
typedef RegionPtr (*CreateDftPtr) (WindowPtr /* pWin */
|
||||||
|
|
|
@ -87,7 +87,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
|
|
||||||
typedef struct _ShmDesc {
|
typedef struct _ShmDesc {
|
||||||
struct _ShmDesc *next;
|
struct _ShmDesc *next;
|
||||||
|
|
|
@ -76,7 +76,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local Global Variables
|
* Local Global Variables
|
||||||
|
|
|
@ -134,8 +134,6 @@ extern void SyncChangeCounter(SyncCounter *pCounter,
|
||||||
|
|
||||||
extern void SyncDestroySystemCounter(pointer pCounter);
|
extern void SyncDestroySystemCounter(pointer pCounter);
|
||||||
|
|
||||||
extern void SyncExtensionInit(void);
|
|
||||||
|
|
||||||
extern SyncCounter *SyncInitDeviceIdleTime(DeviceIntPtr dev);
|
extern SyncCounter *SyncInitDeviceIdleTime(DeviceIntPtr dev);
|
||||||
extern void SyncRemoveDeviceIdleTime(SyncCounter *counter);
|
extern void SyncRemoveDeviceIdleTime(SyncCounter *counter);
|
||||||
#endif /* _SYNCSRV_H_ */
|
#endif /* _SYNCSRV_H_ */
|
||||||
|
|
|
@ -38,7 +38,7 @@ from The Open Group.
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
#include <X11/extensions/xcmiscproto.h>
|
#include <X11/extensions/xcmiscproto.h>
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,7 @@
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "dixfontstr.h"
|
#include "dixfontstr.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
#include <X11/extensions/xf86bigfproto.h>
|
#include <X11/extensions/xf86bigfproto.h>
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
|
|
||||||
#include <X11/fonts/font.h>
|
#include <X11/fonts/font.h>
|
||||||
|
|
||||||
extern void XFree86BigfontExtensionInit(void);
|
|
||||||
extern void XF86BigfontFreeFontShm(FontPtr);
|
extern void XF86BigfontFreeFontShm(FontPtr);
|
||||||
extern void XF86BigfontCleanup(void);
|
extern void XF86BigfontCleanup(void);
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include "pixmapstr.h"
|
#include "pixmapstr.h"
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
|
|
|
@ -26,7 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "propertyst.h"
|
#include "propertyst.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
#include "xselinuxint.h"
|
#include "xselinuxint.h"
|
||||||
|
|
||||||
#define CTX_DEV offsetof(SELinuxSubjectRec, dev_create_sid)
|
#define CTX_DEV offsetof(SELinuxSubjectRec, dev_create_sid)
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
#include "eventstr.h"
|
#include "eventstr.h"
|
||||||
#include "inpututils.h"
|
#include "inpututils.h"
|
||||||
|
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
|
|
||||||
extern int DeviceValuator;
|
extern int DeviceValuator;
|
||||||
|
|
||||||
|
|
|
@ -235,7 +235,6 @@ typedef struct {
|
||||||
extern _X_EXPORT int ProcXvDispatch(ClientPtr);
|
extern _X_EXPORT int ProcXvDispatch(ClientPtr);
|
||||||
extern _X_EXPORT int SProcXvDispatch(ClientPtr);
|
extern _X_EXPORT int SProcXvDispatch(ClientPtr);
|
||||||
|
|
||||||
extern _X_EXPORT void XvExtensionInit(void);
|
|
||||||
extern _X_EXPORT int XvScreenInit(ScreenPtr);
|
extern _X_EXPORT int XvScreenInit(ScreenPtr);
|
||||||
extern _X_EXPORT DevPrivateKey XvGetScreenKey(void);
|
extern _X_EXPORT DevPrivateKey XvGetScreenKey(void);
|
||||||
extern _X_EXPORT unsigned long XvGetRTPort(void);
|
extern _X_EXPORT unsigned long XvGetRTPort(void);
|
||||||
|
|
|
@ -88,6 +88,7 @@ SOFTWARE.
|
||||||
#include "pixmapstr.h"
|
#include "pixmapstr.h"
|
||||||
#include "gc.h"
|
#include "gc.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include <X11/Xfuncproto.h>
|
#include <X11/Xfuncproto.h>
|
||||||
#include "xvdix.h"
|
#include "xvdix.h"
|
||||||
|
|
|
@ -85,8 +85,6 @@ typedef struct {
|
||||||
} XvMCAdaptorRec, *XvMCAdaptorPtr;
|
} XvMCAdaptorRec, *XvMCAdaptorPtr;
|
||||||
|
|
||||||
#ifndef XorgLoader
|
#ifndef XorgLoader
|
||||||
extern _X_EXPORT void XvMCExtensionInit(void);
|
|
||||||
|
|
||||||
extern _X_EXPORT int XvMCScreenInit(ScreenPtr pScreen,
|
extern _X_EXPORT int XvMCScreenInit(ScreenPtr pScreen,
|
||||||
int num, XvMCAdaptorPtr adapt);
|
int num, XvMCAdaptorPtr adapt);
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
#include "extinit.h"
|
||||||
|
|
||||||
static CARD8 CompositeReqCode;
|
static CARD8 CompositeReqCode;
|
||||||
static DevPrivateKeyRec CompositeClientPrivateKeyRec;
|
static DevPrivateKeyRec CompositeClientPrivateKeyRec;
|
||||||
|
|
|
@ -228,13 +228,6 @@ Bool
|
||||||
compReallocPixmap(WindowPtr pWin, int x, int y,
|
compReallocPixmap(WindowPtr pWin, int x, int y,
|
||||||
unsigned int w, unsigned int h, int bw);
|
unsigned int w, unsigned int h, int bw);
|
||||||
|
|
||||||
/*
|
|
||||||
* compext.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
void
|
|
||||||
CompositeExtensionInit(void);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* compinit.c
|
* compinit.c
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,5 +4,4 @@ AM_CFLAGS = $(DIX_CFLAGS)
|
||||||
|
|
||||||
libdamageext_la_SOURCES = \
|
libdamageext_la_SOURCES = \
|
||||||
damageext.c \
|
damageext.c \
|
||||||
damageext.h \
|
|
||||||
damageextint.h
|
damageextint.h
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include "damageextint.h"
|
#include "damageextint.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
#include "extinit.h"
|
||||||
|
|
||||||
static unsigned char DamageReqCode;
|
static unsigned char DamageReqCode;
|
||||||
static int DamageEventBase;
|
static int DamageEventBase;
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "selection.h"
|
#include "selection.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "damageext.h"
|
|
||||||
#include "damage.h"
|
#include "damage.h"
|
||||||
#include "xfixes.h"
|
#include "xfixes.h"
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#define NEED_DBE_PROTOCOL
|
#define NEED_DBE_PROTOCOL
|
||||||
|
|
|
@ -83,8 +83,6 @@ typedef struct {
|
||||||
/* Marker for free elements in the buffer ID array. */
|
/* Marker for free elements in the buffer ID array. */
|
||||||
#define DBE_FREE_ID_ELEMENT 0
|
#define DBE_FREE_ID_ELEMENT 0
|
||||||
|
|
||||||
extern _X_EXPORT void DbeExtensionInit(void);
|
|
||||||
|
|
||||||
/* TYPEDEFS */
|
/* TYPEDEFS */
|
||||||
|
|
||||||
/* Record used to pass swap information between DIX and DDX swapping
|
/* Record used to pass swap information between DIX and DDX swapping
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
#include <registry.h>
|
#include <registry.h>
|
||||||
#include "privates.h"
|
#include "privates.h"
|
||||||
#include <os.h>
|
#include <os.h>
|
||||||
|
#include "extinit.h"
|
||||||
#include "unpack.h"
|
#include "unpack.h"
|
||||||
#include "glxutil.h"
|
#include "glxutil.h"
|
||||||
#include "glxext.h"
|
#include "glxext.h"
|
||||||
|
@ -338,6 +339,9 @@ GlxExtensionInit(void)
|
||||||
if (!__glXContextRes || !__glXDrawableRes)
|
if (!__glXContextRes || !__glXDrawableRes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (serverGeneration == 1)
|
||||||
|
GlxPushProvider(&__glXDRISWRastProvider);
|
||||||
|
|
||||||
if (!dixRegisterPrivateKey
|
if (!dixRegisterPrivateKey
|
||||||
(&glxClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(__GLXclientState)))
|
(&glxClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(__GLXclientState)))
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -76,8 +76,6 @@ extern __GLXclientState *glxGetClient(ClientPtr pClient);
|
||||||
|
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
|
||||||
void GlxExtensionInit(void);
|
|
||||||
|
|
||||||
void GlxSetVisualConfigs(int nconfigs, void *configs, void **privates);
|
void GlxSetVisualConfigs(int nconfigs, void *configs, void **privates);
|
||||||
|
|
||||||
void __glXScreenInitVisuals(__GLXscreen * screen);
|
void __glXScreenInitVisuals(__GLXscreen * screen);
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
|
|
||||||
#include "dmxextension.h"
|
#include "dmxextension.h"
|
||||||
|
@ -65,8 +66,6 @@ extern unsigned long XRT_WINDOW;
|
||||||
extern int PanoramiXNumScreens;
|
extern int PanoramiXNumScreens;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void DMXExtensionInit(void);
|
|
||||||
|
|
||||||
static unsigned char DMXCode;
|
static unsigned char DMXCode;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
#include "glxvisuals.h"
|
#include "glxvisuals.h"
|
||||||
#include "micmap.h"
|
#include "micmap.h"
|
||||||
#include "glxswap.h"
|
#include "glxswap.h"
|
||||||
|
#include "extinit.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Forward declarations.
|
** Forward declarations.
|
||||||
|
|
|
@ -64,8 +64,6 @@ extern void __glXResetLargeCommandStatus(__GLXclientState *);
|
||||||
extern int __glXQueryContextInfoEXT(__GLXclientState * cl, GLbyte * pc);
|
extern int __glXQueryContextInfoEXT(__GLXclientState * cl, GLbyte * pc);
|
||||||
extern int __glXSwapQueryContextInfoEXT(__GLXclientState * cl, char *pc);
|
extern int __glXSwapQueryContextInfoEXT(__GLXclientState * cl, char *pc);
|
||||||
|
|
||||||
extern void GlxExtensionInit(void);
|
|
||||||
|
|
||||||
extern Bool __glXCoreType(void);
|
extern Bool __glXCoreType(void);
|
||||||
|
|
||||||
#endif /* _glxext_h_ */
|
#endif /* _glxext_h_ */
|
||||||
|
|
|
@ -45,7 +45,7 @@ libcommon_la_SOURCES = xf86Configure.c xf86Bus.c xf86Config.c \
|
||||||
xf86Option.c xf86Init.c \
|
xf86Option.c xf86Init.c \
|
||||||
xf86VidMode.c xf86fbman.c xf86cmap.c \
|
xf86VidMode.c xf86fbman.c xf86cmap.c \
|
||||||
xf86Helper.c xf86PM.c xf86Xinput.c xisb.c \
|
xf86Helper.c xf86PM.c xf86Xinput.c xisb.c \
|
||||||
xf86Mode.c xorgHelper.c \
|
xf86Mode.c xorgHelper.c xf86Extensions.h \
|
||||||
$(XVSOURCES) $(BUSSOURCES) $(RANDRSOURCES)
|
$(XVSOURCES) $(BUSSOURCES) $(RANDRSOURCES)
|
||||||
nodist_libcommon_la_SOURCES = xf86DefModeSet.c xf86Build.h
|
nodist_libcommon_la_SOURCES = xf86DefModeSet.c xf86Build.h
|
||||||
libcommon_la_LIBADD = $(top_builddir)/config/libconfig.la
|
libcommon_la_LIBADD = $(top_builddir)/config/libconfig.la
|
||||||
|
|
|
@ -39,7 +39,7 @@ typedef union {
|
||||||
float f;
|
float f;
|
||||||
} vidMonitorValue;
|
} vidMonitorValue;
|
||||||
|
|
||||||
extern _X_EXPORT void XFree86VidModeExtensionInit(void);
|
extern Bool VidModeExtensionInit(ScreenPtr pScreen);
|
||||||
|
|
||||||
extern _X_EXPORT Bool VidModeAvailable(int scrnIndex);
|
extern _X_EXPORT Bool VidModeAvailable(int scrnIndex);
|
||||||
extern _X_EXPORT Bool VidModeGetCurrentModeline(int scrnIndex, pointer *mode,
|
extern _X_EXPORT Bool VidModeGetCurrentModeline(int scrnIndex, pointer *mode,
|
||||||
|
|
|
@ -449,11 +449,6 @@ xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen,
|
||||||
Bool resetMode);
|
Bool resetMode);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* xf86VidModeExtentionInit.c */
|
|
||||||
|
|
||||||
extern _X_EXPORT Bool
|
|
||||||
VidModeExtensionInit(ScreenPtr pScreen);
|
|
||||||
|
|
||||||
/* convert ScreenPtr to ScrnInfoPtr */
|
/* convert ScreenPtr to ScrnInfoPtr */
|
||||||
extern _X_EXPORT ScrnInfoPtr xf86ScreenToScrn(ScreenPtr pScreen);
|
extern _X_EXPORT ScrnInfoPtr xf86ScreenToScrn(ScreenPtr pScreen);
|
||||||
/* convert ScrnInfoPtr to ScreenPtr */
|
/* convert ScrnInfoPtr to ScreenPtr */
|
||||||
|
|
54
hw/xfree86/common/xf86Extensions.h
Normal file
54
hw/xfree86/common/xf86Extensions.h
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
/*
|
||||||
|
* Copyright © 2011 Daniel Stone
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice (including the next
|
||||||
|
* paragraph) shall be included in all copies or substantial portions of the
|
||||||
|
* Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
* DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
|
* Author: Daniel Stone <daniel@fooishbar.org>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef XF86EXTENSIONS_H
|
||||||
|
#define XF86EXTENSIONS_H
|
||||||
|
|
||||||
|
#include "extnsionst.h"
|
||||||
|
|
||||||
|
#ifdef XF86DRI
|
||||||
|
extern Bool noXFree86DRIExtension;
|
||||||
|
extern void XFree86DRIExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef DRI2
|
||||||
|
#include <X11/extensions/dri2proto.h>
|
||||||
|
extern void DRI2ExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef XF86VIDMODE
|
||||||
|
#include <X11/extensions/xf86vmproto.h>
|
||||||
|
extern Bool noXFree86VidModeExtension;
|
||||||
|
extern void XFree86VidModeExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef XFreeXDGA
|
||||||
|
#include <X11/extensions/xf86dgaproto.h>
|
||||||
|
extern Bool noXFree86DGAExtension;
|
||||||
|
extern void XFree86DGAExtensionInit(void);
|
||||||
|
extern void XFree86DGARegister(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -4,11 +4,10 @@
|
||||||
|
|
||||||
#include "xf86Module.h"
|
#include "xf86Module.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
#include "extinit.h"
|
||||||
|
|
||||||
static MODULESETUPPROTO(dbeSetup);
|
static MODULESETUPPROTO(dbeSetup);
|
||||||
|
|
||||||
extern void DbeExtensionInit(void);
|
|
||||||
|
|
||||||
static ExtensionModule dbeExt = {
|
static ExtensionModule dbeExt = {
|
||||||
DbeExtensionInit,
|
DbeExtensionInit,
|
||||||
"DOUBLE-BUFFER",
|
"DOUBLE-BUFFER",
|
||||||
|
|
|
@ -23,7 +23,6 @@ INCLUDES = @XORG_INCS@ \
|
||||||
|
|
||||||
libextmod_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
libextmod_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
||||||
libextmod_la_SOURCES = modinit.c \
|
libextmod_la_SOURCES = modinit.c \
|
||||||
modinit.h \
|
|
||||||
$(DGA_SRCS) \
|
$(DGA_SRCS) \
|
||||||
$(XF86VMODE_SRCS) \
|
$(XF86VMODE_SRCS) \
|
||||||
$(XV_SRCS)
|
$(XV_SRCS)
|
||||||
|
|
|
@ -29,7 +29,8 @@
|
||||||
|
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
|
#include "xf86Extensions.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
static MODULESETUPPROTO(extmodSetup);
|
static MODULESETUPPROTO(extmodSetup);
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#include "dixevents.h"
|
#include "dixevents.h"
|
||||||
#include "pixmapstr.h"
|
#include "pixmapstr.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "xf86Extensions.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
@ -28,7 +29,7 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "modinit.h"
|
#include "extinit.h"
|
||||||
|
|
||||||
#define DGA_PROTOCOL_OLD_SUPPORT 1
|
#define DGA_PROTOCOL_OLD_SUPPORT 1
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ from Kaleb S. KEITHLEY
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "xf86Extensions.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include <X11/extensions/xf86vmproto.h>
|
#include <X11/extensions/xf86vmproto.h>
|
||||||
|
|
|
@ -42,6 +42,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include "micmap.h"
|
#include "micmap.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "glxserver.h"
|
#include "glxserver.h"
|
||||||
|
#include "extinit.h"
|
||||||
|
|
||||||
static MODULESETUPPROTO(glxSetup);
|
static MODULESETUPPROTO(glxSetup);
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,12 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "xf86Module.h"
|
#include "xf86Module.h"
|
||||||
|
#include "extinit.h"
|
||||||
|
|
||||||
extern Bool noTestExtensions;
|
extern Bool noTestExtensions;
|
||||||
|
|
||||||
static MODULESETUPPROTO(recordSetup);
|
static MODULESETUPPROTO(recordSetup);
|
||||||
|
|
||||||
extern void RecordExtensionInit(void);
|
|
||||||
|
|
||||||
static ExtensionModule recordExt = {
|
static ExtensionModule recordExt = {
|
||||||
RecordExtensionInit,
|
RecordExtensionInit,
|
||||||
"RECORD",
|
"RECORD",
|
||||||
|
|
|
@ -51,6 +51,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
@ -68,6 +69,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include "xf86_OSproc.h"
|
#include "xf86_OSproc.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "xf86VGAarbiter.h"
|
#include "xf86VGAarbiter.h"
|
||||||
|
#include "xf86Extensions.h"
|
||||||
|
|
||||||
static int DRIEntPrivIndex = -1;
|
static int DRIEntPrivIndex = -1;
|
||||||
static DevPrivateKeyRec DRIScreenPrivKeyRec;
|
static DevPrivateKeyRec DRIScreenPrivKeyRec;
|
||||||
|
|
|
@ -37,6 +37,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "xf86Module.h"
|
#include "xf86Module.h"
|
||||||
|
#include "xf86Extensions.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
#include "xf86drm.h"
|
#include "xf86drm.h"
|
||||||
|
@ -57,7 +58,6 @@ static XF86ModuleVersionInfo VersRec = {
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void XFree86DRIExtensionInit(void);
|
|
||||||
#define _XF86DRI_SERVER_
|
#define _XF86DRI_SERVER_
|
||||||
#include <X11/dri/xf86driproto.h>
|
#include <X11/dri/xf86driproto.h>
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
@ -60,17 +61,17 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include "dristruct.h"
|
#include "dristruct.h"
|
||||||
#include "xf86drm.h"
|
#include "xf86drm.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
#include "xf86Extensions.h"
|
||||||
|
|
||||||
static int DRIErrorBase;
|
static int DRIErrorBase;
|
||||||
|
|
||||||
static void XF86DRIResetProc(ExtensionEntry * extEntry);
|
static void XF86DRIResetProc(ExtensionEntry *extEntry);
|
||||||
|
|
||||||
static unsigned char DRIReqCode = 0;
|
static unsigned char DRIReqCode = 0;
|
||||||
|
|
||||||
extern void XFree86DRIExtensionInit(void);
|
/*ARGSUSED*/
|
||||||
|
static void
|
||||||
/*ARGSUSED*/ static void
|
XF86DRIResetProc(ExtensionEntry *extEntry)
|
||||||
XF86DRIResetProc(ExtensionEntry * extEntry)
|
|
||||||
{
|
{
|
||||||
DRIReset();
|
DRIReset();
|
||||||
}
|
}
|
||||||
|
|
|
@ -279,7 +279,6 @@ cat > sdksyms.c << EOF
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "exevents.h"
|
#include "exevents.h"
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
#include "extinit.h"
|
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "gc.h"
|
#include "gc.h"
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
#include "darwin.h"
|
#include "darwin.h"
|
||||||
#include "pseudoramiX.h"
|
#include "pseudoramiX.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include <X11/extensions/panoramiXproto.h>
|
#include <X11/extensions/panoramiXproto.h>
|
||||||
|
|
|
@ -6,6 +6,5 @@ extern int noPseudoramiXExtension;
|
||||||
|
|
||||||
void
|
void
|
||||||
PseudoramiXAddScreen(int x, int y, int w, int h);
|
PseudoramiXAddScreen(int x, int y, int w, int h);
|
||||||
void PseudoramiXExtensionInit(int argc, char *argv[]);
|
|
||||||
void
|
void
|
||||||
PseudoramiXResetScreens(void);
|
PseudoramiXResetScreens(void);
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
|
|
@ -72,9 +72,6 @@ DRIFinishScreenInit(ScreenPtr pScreen);
|
||||||
extern void
|
extern void
|
||||||
DRICloseScreen(ScreenPtr pScreen);
|
DRICloseScreen(ScreenPtr pScreen);
|
||||||
|
|
||||||
extern Bool
|
|
||||||
DRIExtensionInit(void);
|
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
DRIReset(void);
|
DRIReset(void);
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,29 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
********************************************************/
|
********************************************************/
|
||||||
|
|
||||||
/********************************************************************
|
/*
|
||||||
* Interface of extinit.c
|
* Copyright (C) 1994-2003 The XFree86 Project, Inc. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
* this software and associated documentation files (the "Software"), to deal in
|
||||||
|
* the Software without restriction, including without limitation the rights to
|
||||||
|
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
* of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
* so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
|
||||||
|
* NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
|
* Except as contained in this notice, the name of the XFree86 Project shall not
|
||||||
|
* be used in advertising or otherwise to promote the sale, use or other dealings
|
||||||
|
* in this Software without prior written authorization from the XFree86 Project.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EXTINIT_H
|
#ifndef EXTINIT_H
|
||||||
|
@ -32,14 +53,135 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
|
||||||
extern void
|
#ifdef COMPOSITE
|
||||||
XInputExtensionInit(void
|
extern Bool noCompositeExtension;
|
||||||
);
|
extern void CompositeExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
extern _X_EXPORT void
|
#ifdef DAMAGE
|
||||||
AssignTypeAndName(DeviceIntPtr /* dev */ ,
|
extern Bool noDamageExtension;
|
||||||
Atom /* type */ ,
|
extern void DamageExtensionInit(void);
|
||||||
const char * /* name */
|
#endif
|
||||||
);
|
|
||||||
|
|
||||||
#endif /* EXTINIT_H */
|
#if defined(DBE) && !defined(XorgLoader)
|
||||||
|
extern Bool noDbeExtension;
|
||||||
|
extern void DbeExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef DMXEXT
|
||||||
|
extern void DMXExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(DPMSExtension) && !defined(XorgLoader)
|
||||||
|
#include <X11/extensions/dpmsconst.h>
|
||||||
|
extern Bool noDPMSExtension;
|
||||||
|
extern void DPMSExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern Bool noGEExtension;
|
||||||
|
extern void GEExtensionInit(void);
|
||||||
|
|
||||||
|
#ifdef GLXEXT
|
||||||
|
extern _X_EXPORT Bool noGlxExtension;
|
||||||
|
extern void GlxExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef PANORAMIX
|
||||||
|
#include <X11/extensions/panoramiXproto.h>
|
||||||
|
extern Bool noPanoramiXExtension;
|
||||||
|
extern void PanoramiXExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef RANDR
|
||||||
|
extern Bool noRRExtension;
|
||||||
|
extern void RRExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(XRECORD) && !defined(XorgLoader)
|
||||||
|
extern void RecordExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern Bool noRenderExtension;
|
||||||
|
extern void RenderExtensionInit(void);
|
||||||
|
|
||||||
|
#if defined(RES) && !defined(XorgLoader)
|
||||||
|
#include <X11/extensions/XResproto.h>
|
||||||
|
extern Bool noResExtension;
|
||||||
|
extern void ResExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(SCREENSAVER) && !defined(XorgLoader)
|
||||||
|
#include <X11/extensions/saver.h>
|
||||||
|
extern Bool noScreenSaverExtension;
|
||||||
|
extern void ScreenSaverExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <X11/extensions/shapeproto.h>
|
||||||
|
extern void ShapeExtensionInit(void);
|
||||||
|
|
||||||
|
#ifdef MITSHM
|
||||||
|
#include <X11/extensions/shm.h>
|
||||||
|
#include <X11/extensions/shmproto.h>
|
||||||
|
extern Bool noMITShmExtension;
|
||||||
|
extern void ShmExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern void SyncExtensionInit(void);
|
||||||
|
|
||||||
|
extern void XCMiscExtensionInit(void);
|
||||||
|
|
||||||
|
#ifdef XCSECURITY
|
||||||
|
#include <X11/extensions/secur.h>
|
||||||
|
#include "securitysrv.h"
|
||||||
|
extern Bool noSecurityExtension;
|
||||||
|
extern void SecurityExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef XF86BIGFONT
|
||||||
|
#include <X11/extensions/xf86bigfproto.h>
|
||||||
|
extern Bool noXFree86BigfontExtension;
|
||||||
|
extern void XFree86BigfontExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern void BigReqExtensionInit(void);
|
||||||
|
|
||||||
|
#ifdef XFIXES
|
||||||
|
extern Bool noXFixesExtension;
|
||||||
|
extern void XFixesExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern void XInputExtensionInit(void);
|
||||||
|
extern _X_EXPORT void AssignTypeAndName(DeviceIntPtr dev,
|
||||||
|
Atom type,
|
||||||
|
const char *name);
|
||||||
|
|
||||||
|
#include <X11/extensions/XKB.h>
|
||||||
|
extern void XkbExtensionInit(void);
|
||||||
|
|
||||||
|
#if defined(XSELINUX) && !defined(XorgLoader)
|
||||||
|
#include "xselinux.h"
|
||||||
|
extern Bool noSELinuxExtension;
|
||||||
|
extern void SELinuxExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef XTEST
|
||||||
|
#include <X11/extensions/xtestconst.h>
|
||||||
|
#include <X11/extensions/xtestproto.h>
|
||||||
|
extern void XTestExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef INXQUARTZ
|
||||||
|
extern Bool noPseudoramiXExtension;
|
||||||
|
extern void PseudoramiXExtensionInit(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(XV) && !defined(XorgLoader)
|
||||||
|
#include <X11/extensions/Xv.h>
|
||||||
|
#include <X11/extensions/XvMC.h>
|
||||||
|
extern Bool noXvExtension;
|
||||||
|
extern void XvExtensionInit(void);
|
||||||
|
extern void XvMCExtensionInit(void);
|
||||||
|
extern void XvRegister(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "window.h" /* for WindowPtr */
|
#include "window.h" /* for WindowPtr */
|
||||||
|
#include "extinit.h"
|
||||||
|
|
||||||
/* Global X server variables that are visible to mi, dix, os, and ddx */
|
/* Global X server variables that are visible to mi, dix, os, and ddx */
|
||||||
|
|
||||||
|
@ -41,79 +42,7 @@ extern _X_EXPORT Bool DPMSCapableFlag;
|
||||||
extern _X_EXPORT Bool PanoramiXExtensionDisabledHack;
|
extern _X_EXPORT Bool PanoramiXExtensionDisabledHack;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef COMPOSITE
|
|
||||||
extern _X_EXPORT Bool noCompositeExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DAMAGE
|
|
||||||
extern _X_EXPORT Bool noDamageExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DBE
|
|
||||||
extern _X_EXPORT Bool noDbeExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DPMSExtension
|
|
||||||
extern _X_EXPORT Bool noDPMSExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GLXEXT
|
|
||||||
extern _X_EXPORT Bool noGlxExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef SCREENSAVER
|
|
||||||
extern _X_EXPORT Bool noScreenSaverExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MITSHM
|
|
||||||
extern _X_EXPORT Bool noMITShmExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef RANDR
|
|
||||||
extern _X_EXPORT Bool noRRExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern _X_EXPORT Bool noRenderExtension;
|
|
||||||
|
|
||||||
#ifdef XCSECURITY
|
|
||||||
extern _X_EXPORT Bool noSecurityExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef RES
|
|
||||||
extern _X_EXPORT Bool noResExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XF86BIGFONT
|
|
||||||
extern _X_EXPORT Bool noXFree86BigfontExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XFreeXDGA
|
|
||||||
extern _X_EXPORT Bool noXFree86DGAExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XF86DRI
|
|
||||||
extern _X_EXPORT Bool noXFree86DRIExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XF86VIDMODE
|
|
||||||
extern _X_EXPORT Bool noXFree86VidModeExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XFIXES
|
|
||||||
extern _X_EXPORT Bool noXFixesExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
|
||||||
extern _X_EXPORT Bool noPanoramiXExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef INXQUARTZ
|
|
||||||
extern _X_EXPORT Bool noPseudoramiXExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XSELINUX
|
#ifdef XSELINUX
|
||||||
extern _X_EXPORT Bool noSELinuxExtension;
|
|
||||||
|
|
||||||
#define SELINUX_MODE_DEFAULT 0
|
#define SELINUX_MODE_DEFAULT 0
|
||||||
#define SELINUX_MODE_DISABLED 1
|
#define SELINUX_MODE_DISABLED 1
|
||||||
#define SELINUX_MODE_PERMISSIVE 2
|
#define SELINUX_MODE_PERMISSIVE 2
|
||||||
|
@ -121,12 +50,4 @@ extern _X_EXPORT Bool noSELinuxExtension;
|
||||||
extern _X_EXPORT int selinuxEnforcingState;
|
extern _X_EXPORT int selinuxEnforcingState;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XV
|
|
||||||
extern _X_EXPORT Bool noXvExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DRI2
|
|
||||||
extern _X_EXPORT Bool noDRI2Extension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* !_XSERV_GLOBAL_H_ */
|
#endif /* !_XSERV_GLOBAL_H_ */
|
||||||
|
|
|
@ -214,10 +214,8 @@ extern _X_EXPORT void ResizeChildrenWinSize(WindowPtr /*pWin */ ,
|
||||||
int /*dw */ ,
|
int /*dw */ ,
|
||||||
int /*dh */ );
|
int /*dh */ );
|
||||||
|
|
||||||
extern _X_EXPORT void ShapeExtensionInit(void);
|
|
||||||
|
|
||||||
extern _X_EXPORT void SendShapeNotify(WindowPtr /* pWin */ ,
|
extern _X_EXPORT void SendShapeNotify(WindowPtr /* pWin */ ,
|
||||||
int /* which */ );
|
int /* which */);
|
||||||
|
|
||||||
extern _X_EXPORT RegionPtr CreateBoundingShape(WindowPtr /* pWin */ );
|
extern _X_EXPORT RegionPtr CreateBoundingShape(WindowPtr /* pWin */ );
|
||||||
|
|
||||||
|
|
105
mi/miinitext.c
105
mi/miinitext.c
|
@ -90,114 +90,15 @@ SOFTWARE.
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "extension.h"
|
#include "extension.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "micmap.h"
|
#include "micmap.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
extern Bool noGEExtension;
|
|
||||||
|
|
||||||
#ifndef XFree86LOADER
|
#ifndef XFree86LOADER
|
||||||
typedef void (*InitExtension) (void);
|
typedef void (*InitExtension) (void);
|
||||||
#else /* XFree86Loader */
|
#else /* XFree86Loader */
|
||||||
#include "loaderProcs.h"
|
#include "loaderProcs.h"
|
||||||
#endif
|
#include "xf86Extensions.h"
|
||||||
|
|
||||||
#ifdef MITSHM
|
|
||||||
#include <X11/extensions/shm.h>
|
|
||||||
#endif
|
|
||||||
#ifdef XTEST
|
|
||||||
#include <X11/extensions/xtestconst.h>
|
|
||||||
#endif
|
|
||||||
#include <X11/extensions/XKB.h>
|
|
||||||
#ifdef XCSECURITY
|
|
||||||
#include "securitysrv.h"
|
|
||||||
#include <X11/extensions/secur.h>
|
|
||||||
#endif
|
|
||||||
#ifdef XSELINUX
|
|
||||||
#include "xselinux.h"
|
|
||||||
#endif
|
|
||||||
#ifdef PANORAMIX
|
|
||||||
#include <X11/extensions/panoramiXproto.h>
|
|
||||||
#endif
|
|
||||||
#ifdef XF86BIGFONT
|
|
||||||
#include <X11/extensions/xf86bigfproto.h>
|
|
||||||
#endif
|
|
||||||
#ifdef RES
|
|
||||||
#include <X11/extensions/XResproto.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* FIXME: this whole block of externs should be from the appropriate headers */
|
|
||||||
#ifdef MITSHM
|
|
||||||
extern void ShmExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef PANORAMIX
|
|
||||||
extern void PanoramiXExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef INXQUARTZ
|
|
||||||
extern void PseudoramiXExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
extern void XInputExtensionInit(void);
|
|
||||||
#ifdef XTEST
|
|
||||||
extern void XTestExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
extern void BigReqExtensionInit(void);
|
|
||||||
#ifdef SCREENSAVER
|
|
||||||
extern void ScreenSaverExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef XV
|
|
||||||
extern void XvExtensionInit(void);
|
|
||||||
extern void XvMCExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
extern void SyncExtensionInit(void);
|
|
||||||
extern void XkbExtensionInit(void);
|
|
||||||
extern void XCMiscExtensionInit(void);
|
|
||||||
#ifdef XRECORD
|
|
||||||
extern void RecordExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef DBE
|
|
||||||
extern void DbeExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef XCSECURITY
|
|
||||||
extern void SecurityExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef XSELINUX
|
|
||||||
extern void SELinuxExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef XF86BIGFONT
|
|
||||||
extern void XFree86BigfontExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef XF86VIDMODE
|
|
||||||
extern void XFree86VidModeExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef XFreeXDGA
|
|
||||||
extern void XFree86DGAExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef GLXEXT
|
|
||||||
extern void GlxExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef XF86DRI
|
|
||||||
extern void XFree86DRIExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef DPMSExtension
|
|
||||||
extern void DPMSExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
extern void RenderExtensionInit(void);
|
|
||||||
#ifdef RANDR
|
|
||||||
extern void RRExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef RES
|
|
||||||
extern void ResExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef DMXEXT
|
|
||||||
extern void DMXExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef XFIXES
|
|
||||||
extern void XFixesExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef DAMAGE
|
|
||||||
extern void DamageExtensionInit(void);
|
|
||||||
#endif
|
|
||||||
#ifdef COMPOSITE
|
|
||||||
extern void CompositeExtensionInit(void);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The following is only a small first step towards run-time
|
/* The following is only a small first step towards run-time
|
||||||
|
@ -245,6 +146,7 @@ static ExtensionToggle ExtensionToggleList[] = {
|
||||||
#ifdef XF86BIGFONT
|
#ifdef XF86BIGFONT
|
||||||
{"XFree86-Bigfont", &noXFree86BigfontExtension},
|
{"XFree86-Bigfont", &noXFree86BigfontExtension},
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef NO_HW_ONLY_EXTS
|
||||||
#ifdef XFreeXDGA
|
#ifdef XFreeXDGA
|
||||||
{"XFree86-DGA", &noXFree86DGAExtension},
|
{"XFree86-DGA", &noXFree86DGAExtension},
|
||||||
#endif
|
#endif
|
||||||
|
@ -254,6 +156,7 @@ static ExtensionToggle ExtensionToggleList[] = {
|
||||||
#ifdef XF86VIDMODE
|
#ifdef XF86VIDMODE
|
||||||
{"XFree86-VidModeExtension", &noXFree86VidModeExtension},
|
{"XFree86-VidModeExtension", &noXFree86VidModeExtension},
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef XFIXES
|
#ifdef XFIXES
|
||||||
{"XFIXES", &noXFixesExtension},
|
{"XFIXES", &noXFixesExtension},
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "randrstr.h"
|
#include "randrstr.h"
|
||||||
|
#include "extinit.h"
|
||||||
|
|
||||||
/* From render.h */
|
/* From render.h */
|
||||||
#ifndef SubPixelUnknown
|
#ifndef SubPixelUnknown
|
||||||
|
|
|
@ -418,10 +418,6 @@ extern _X_EXPORT RESTYPE RRCrtcType, RRModeType, RROutputType, RRProviderType;
|
||||||
#define GetRRClient(pClient) ((RRClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RRClientPrivateKey))
|
#define GetRRClient(pClient) ((RRClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RRClientPrivateKey))
|
||||||
#define rrClientPriv(pClient) RRClientPtr pRRClient = GetRRClient(pClient)
|
#define rrClientPriv(pClient) RRClientPtr pRRClient = GetRRClient(pClient)
|
||||||
|
|
||||||
/* Initialize the extension */
|
|
||||||
extern _X_EXPORT void
|
|
||||||
RRExtensionInit(void);
|
|
||||||
|
|
||||||
#ifdef RANDR_12_INTERFACE
|
#ifdef RANDR_12_INTERFACE
|
||||||
/*
|
/*
|
||||||
* Set the range of sizes for the screen
|
* Set the range of sizes for the screen
|
||||||
|
|
|
@ -38,6 +38,7 @@ and Jim Haggerty of Metheus.
|
||||||
|
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include <X11/extensions/recordproto.h>
|
#include <X11/extensions/recordproto.h>
|
||||||
#include "set.h"
|
#include "set.h"
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
|
@ -139,8 +140,6 @@ static int RecordDeleteContext(pointer /*value */ ,
|
||||||
XID /*id */
|
XID /*id */
|
||||||
);
|
);
|
||||||
|
|
||||||
void RecordExtensionInit(void);
|
|
||||||
|
|
||||||
/***************************************************************************/
|
/***************************************************************************/
|
||||||
|
|
||||||
/* client private stuff */
|
/* client private stuff */
|
||||||
|
|
|
@ -547,8 +547,6 @@ CompositeTriFan(CARD8 op,
|
||||||
PictFormatPtr maskFormat,
|
PictFormatPtr maskFormat,
|
||||||
INT16 xSrc, INT16 ySrc, int npoints, xPointFixed * points);
|
INT16 xSrc, INT16 ySrc, int npoints, xPointFixed * points);
|
||||||
|
|
||||||
extern _X_EXPORT void RenderExtensionInit(void);
|
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
AnimCurInit(ScreenPtr pScreen);
|
AnimCurInit(ScreenPtr pScreen);
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
#include "pixmapstr.h"
|
#include "pixmapstr.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include <X11/extensions/render.h>
|
#include <X11/extensions/render.h>
|
||||||
#include <X11/extensions/renderproto.h>
|
#include <X11/extensions/renderproto.h>
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
|
|
||||||
#include "xfixesint.h"
|
#include "xfixesint.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
#include "extinit.h"
|
||||||
|
|
||||||
static unsigned char XFixesReqCode;
|
static unsigned char XFixesReqCode;
|
||||||
int XFixesEventBase;
|
int XFixesEventBase;
|
||||||
|
|
|
@ -71,11 +71,6 @@ typedef struct _XFixesClient {
|
||||||
|
|
||||||
extern int (*ProcXFixesVector[XFixesNumberRequests]) (ClientPtr);
|
extern int (*ProcXFixesVector[XFixesNumberRequests]) (ClientPtr);
|
||||||
|
|
||||||
/* Initialize extension at server startup time */
|
|
||||||
|
|
||||||
void
|
|
||||||
XFixesExtensionInit(void);
|
|
||||||
|
|
||||||
/* Save set */
|
/* Save set */
|
||||||
int
|
int
|
||||||
ProcXFixesChangeSaveSet(ClientPtr client);
|
ProcXFixesChangeSaveSet(ClientPtr client);
|
||||||
|
|
|
@ -36,6 +36,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#define XKBSRV_NEED_FILE_FUNCS
|
#define XKBSRV_NEED_FILE_FUNCS
|
||||||
#include <xkbsrv.h>
|
#include <xkbsrv.h>
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "extinit.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "xkb.h"
|
#include "xkb.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
|
@ -27,6 +27,4 @@ extern int ProcXkbGetKbdByName(ClientPtr client);
|
||||||
extern int ProcXkbGetDeviceInfo(ClientPtr client);
|
extern int ProcXkbGetDeviceInfo(ClientPtr client);
|
||||||
extern int ProcXkbSetDeviceInfo(ClientPtr client);
|
extern int ProcXkbSetDeviceInfo(ClientPtr client);
|
||||||
extern int ProcXkbSetDebuggingFlags(ClientPtr client);
|
extern int ProcXkbSetDebuggingFlags(ClientPtr client);
|
||||||
|
|
||||||
extern void XkbExtensionInit(void);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user