Remove all empty extension reset hooks, replace with NULL.
This commit is contained in:
parent
6bcde69585
commit
9757106bba
|
@ -41,10 +41,6 @@ from The Open Group.
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include "modinit.h"
|
#include "modinit.h"
|
||||||
|
|
||||||
static void BigReqResetProc(
|
|
||||||
ExtensionEntry * /* extEntry */
|
|
||||||
);
|
|
||||||
|
|
||||||
static DISPATCH_PROC(ProcBigReqDispatch);
|
static DISPATCH_PROC(ProcBigReqDispatch);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -52,14 +48,7 @@ BigReqExtensionInit(INITARGS)
|
||||||
{
|
{
|
||||||
AddExtension(XBigReqExtensionName, 0, 0,
|
AddExtension(XBigReqExtensionName, 0, 0,
|
||||||
ProcBigReqDispatch, ProcBigReqDispatch,
|
ProcBigReqDispatch, ProcBigReqDispatch,
|
||||||
BigReqResetProc, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
}
|
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
BigReqResetProc (extEntry)
|
|
||||||
ExtensionEntry *extEntry;
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
10
Xext/dpms.c
10
Xext/dpms.c
|
@ -68,21 +68,13 @@ static DISPATCH_PROC(ProcDPMSInfo);
|
||||||
static DISPATCH_PROC(SProcDPMSInfo);
|
static DISPATCH_PROC(SProcDPMSInfo);
|
||||||
static DISPATCH_PROC(ProcDPMSCapable);
|
static DISPATCH_PROC(ProcDPMSCapable);
|
||||||
static DISPATCH_PROC(SProcDPMSCapable);
|
static DISPATCH_PROC(SProcDPMSCapable);
|
||||||
static void DPMSResetProc(ExtensionEntry* extEntry);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DPMSExtensionInit(INITARGS)
|
DPMSExtensionInit(INITARGS)
|
||||||
{
|
{
|
||||||
AddExtension(DPMSExtensionName, 0, 0,
|
AddExtension(DPMSExtensionName, 0, 0,
|
||||||
ProcDPMSDispatch, SProcDPMSDispatch,
|
ProcDPMSDispatch, SProcDPMSDispatch,
|
||||||
DPMSResetProc, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
}
|
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
DPMSResetProc (extEntry)
|
|
||||||
ExtensionEntry *extEntry;
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
13
Xext/saver.c
13
Xext/saver.c
|
@ -110,10 +110,6 @@ static void SScreenSaverNotifyEvent (
|
||||||
xScreenSaverNotifyEvent * /* to */
|
xScreenSaverNotifyEvent * /* to */
|
||||||
);
|
);
|
||||||
|
|
||||||
static void ScreenSaverResetProc (
|
|
||||||
ExtensionEntry * /* extEntry */
|
|
||||||
);
|
|
||||||
|
|
||||||
static RESTYPE SuspendType; /* resource type for suspension records */
|
static RESTYPE SuspendType; /* resource type for suspension records */
|
||||||
|
|
||||||
typedef struct _ScreenSaverSuspension *ScreenSaverSuspensionPtr;
|
typedef struct _ScreenSaverSuspension *ScreenSaverSuspensionPtr;
|
||||||
|
@ -269,20 +265,13 @@ ScreenSaverExtensionInit(INITARGS)
|
||||||
if (AttrType && EventType && SuspendType &&
|
if (AttrType && EventType && SuspendType &&
|
||||||
(extEntry = AddExtension(ScreenSaverName, ScreenSaverNumberEvents, 0,
|
(extEntry = AddExtension(ScreenSaverName, ScreenSaverNumberEvents, 0,
|
||||||
ProcScreenSaverDispatch, SProcScreenSaverDispatch,
|
ProcScreenSaverDispatch, SProcScreenSaverDispatch,
|
||||||
ScreenSaverResetProc, StandardMinorOpcode)))
|
NULL, StandardMinorOpcode)))
|
||||||
{
|
{
|
||||||
ScreenSaverEventBase = extEntry->eventBase;
|
ScreenSaverEventBase = extEntry->eventBase;
|
||||||
EventSwapVector[ScreenSaverEventBase] = (EventSwapPtr) SScreenSaverNotifyEvent;
|
EventSwapVector[ScreenSaverEventBase] = (EventSwapPtr) SScreenSaverNotifyEvent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
ScreenSaverResetProc (extEntry)
|
|
||||||
ExtensionEntry *extEntry;
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
CheckScreenPrivate (pScreen)
|
CheckScreenPrivate (pScreen)
|
||||||
ScreenPtr pScreen;
|
ScreenPtr pScreen;
|
||||||
|
|
12
Xext/shape.c
12
Xext/shape.c
|
@ -61,9 +61,6 @@ static int ShapeFreeEvents(
|
||||||
pointer /* data */,
|
pointer /* data */,
|
||||||
XID /* id */
|
XID /* id */
|
||||||
);
|
);
|
||||||
static void ShapeResetProc(
|
|
||||||
ExtensionEntry * /* extEntry */
|
|
||||||
);
|
|
||||||
static void SShapeNotifyEvent(
|
static void SShapeNotifyEvent(
|
||||||
xShapeNotifyEvent * /* from */,
|
xShapeNotifyEvent * /* from */,
|
||||||
xShapeNotifyEvent * /* to */
|
xShapeNotifyEvent * /* to */
|
||||||
|
@ -149,20 +146,13 @@ ShapeExtensionInit(void)
|
||||||
if (ClientType && EventType &&
|
if (ClientType && EventType &&
|
||||||
(extEntry = AddExtension(SHAPENAME, ShapeNumberEvents, 0,
|
(extEntry = AddExtension(SHAPENAME, ShapeNumberEvents, 0,
|
||||||
ProcShapeDispatch, SProcShapeDispatch,
|
ProcShapeDispatch, SProcShapeDispatch,
|
||||||
ShapeResetProc, StandardMinorOpcode)))
|
NULL, StandardMinorOpcode)))
|
||||||
{
|
{
|
||||||
ShapeEventBase = extEntry->eventBase;
|
ShapeEventBase = extEntry->eventBase;
|
||||||
EventSwapVector[ShapeEventBase] = (EventSwapPtr) SShapeNotifyEvent;
|
EventSwapVector[ShapeEventBase] = (EventSwapPtr) SShapeNotifyEvent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
ShapeResetProc (extEntry)
|
|
||||||
ExtensionEntry *extEntry;
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
RegionOperate (client, pWin, kind, destRgnp, srcRgn, op, xoff, yoff, create)
|
RegionOperate (client, pWin, kind, destRgnp, srcRgn, op, xoff, yoff, create)
|
||||||
ClientPtr client;
|
ClientPtr client;
|
||||||
|
|
|
@ -218,11 +218,6 @@ SProcXCalibrateScreenToCoord (ClientPtr client)
|
||||||
return ProcXCalibrateScreenToCoord(client);
|
return ProcXCalibrateScreenToCoord(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
XCalibrateResetProc (ExtensionEntry *extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcXCalibrateDispatch (ClientPtr client)
|
ProcXCalibrateDispatch (ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -292,7 +287,7 @@ XCalibrateExtensionInit(void)
|
||||||
|
|
||||||
extEntry = AddExtension(XCALIBRATE_NAME, XCalibrateNumberEvents, XCalibrateNumberErrors,
|
extEntry = AddExtension(XCALIBRATE_NAME, XCalibrateNumberEvents, XCalibrateNumberErrors,
|
||||||
ProcXCalibrateDispatch, SProcXCalibrateDispatch,
|
ProcXCalibrateDispatch, SProcXCalibrateDispatch,
|
||||||
XCalibrateResetProc, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
|
|
||||||
if (!extEntry)
|
if (!extEntry)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -48,10 +48,6 @@ from The Open Group.
|
||||||
#define UINT32_MAX 0xffffffffU
|
#define UINT32_MAX 0xffffffffU
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void XCMiscResetProc(
|
|
||||||
ExtensionEntry * /* extEntry */
|
|
||||||
);
|
|
||||||
|
|
||||||
static DISPATCH_PROC(ProcXCMiscDispatch);
|
static DISPATCH_PROC(ProcXCMiscDispatch);
|
||||||
static DISPATCH_PROC(ProcXCMiscGetVersion);
|
static DISPATCH_PROC(ProcXCMiscGetVersion);
|
||||||
static DISPATCH_PROC(ProcXCMiscGetXIDList);
|
static DISPATCH_PROC(ProcXCMiscGetXIDList);
|
||||||
|
@ -66,14 +62,7 @@ XCMiscExtensionInit(INITARGS)
|
||||||
{
|
{
|
||||||
AddExtension(XCMiscExtensionName, 0, 0,
|
AddExtension(XCMiscExtensionName, 0, 0,
|
||||||
ProcXCMiscDispatch, SProcXCMiscDispatch,
|
ProcXCMiscDispatch, SProcXCMiscDispatch,
|
||||||
XCMiscResetProc, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
}
|
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
XCMiscResetProc (extEntry)
|
|
||||||
ExtensionEntry *extEntry;
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
10
Xext/xevie.c
10
Xext/xevie.c
|
@ -67,8 +67,6 @@ extern int xeviegrabState;
|
||||||
static DISPATCH_PROC(ProcXevieDispatch);
|
static DISPATCH_PROC(ProcXevieDispatch);
|
||||||
static DISPATCH_PROC(SProcXevieDispatch);
|
static DISPATCH_PROC(SProcXevieDispatch);
|
||||||
|
|
||||||
static void XevieResetProc (ExtensionEntry *extEntry);
|
|
||||||
|
|
||||||
static unsigned char XevieReqCode = 0;
|
static unsigned char XevieReqCode = 0;
|
||||||
static int XevieErrorBase;
|
static int XevieErrorBase;
|
||||||
|
|
||||||
|
@ -140,19 +138,13 @@ XevieExtensionInit (void)
|
||||||
XevieNumberErrors,
|
XevieNumberErrors,
|
||||||
ProcXevieDispatch,
|
ProcXevieDispatch,
|
||||||
SProcXevieDispatch,
|
SProcXevieDispatch,
|
||||||
XevieResetProc,
|
NULL,
|
||||||
StandardMinorOpcode))) {
|
StandardMinorOpcode))) {
|
||||||
XevieReqCode = (unsigned char)extEntry->base;
|
XevieReqCode = (unsigned char)extEntry->base;
|
||||||
XevieErrorBase = extEntry->errorBase;
|
XevieErrorBase = extEntry->errorBase;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static
|
|
||||||
void XevieResetProc (ExtensionEntry *extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static
|
static
|
||||||
int ProcXevieQueryVersion (ClientPtr client)
|
int ProcXevieQueryVersion (ClientPtr client)
|
||||||
{
|
{
|
||||||
|
|
|
@ -301,10 +301,6 @@ ProcXResQueryClientPixmapBytes (ClientPtr client)
|
||||||
return (client->noClientException);
|
return (client->noClientException);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
ResResetProc (ExtensionEntry *extEntry) { }
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcResDispatch (ClientPtr client)
|
ProcResDispatch (ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -386,5 +382,5 @@ ResExtensionInit(INITARGS)
|
||||||
{
|
{
|
||||||
(void) AddExtension(XRES_NAME, 0, 0,
|
(void) AddExtension(XRES_NAME, 0, 0,
|
||||||
ProcResDispatch, SProcResDispatch,
|
ProcResDispatch, SProcResDispatch,
|
||||||
ResResetProc, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
}
|
}
|
||||||
|
|
12
Xext/xtest.c
12
Xext/xtest.c
|
@ -60,9 +60,6 @@ extern int DeviceMotionNotify;
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void XTestResetProc(
|
|
||||||
ExtensionEntry * /* extEntry */
|
|
||||||
);
|
|
||||||
static int XTestSwapFakeInput(
|
static int XTestSwapFakeInput(
|
||||||
ClientPtr /* client */,
|
ClientPtr /* client */,
|
||||||
xReq * /* req */
|
xReq * /* req */
|
||||||
|
@ -84,14 +81,7 @@ XTestExtensionInit(INITARGS)
|
||||||
{
|
{
|
||||||
AddExtension(XTestExtensionName, 0, 0,
|
AddExtension(XTestExtensionName, 0, 0,
|
||||||
ProcXTestDispatch, SProcXTestDispatch,
|
ProcXTestDispatch, SProcXTestDispatch,
|
||||||
XTestResetProc, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
}
|
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
XTestResetProc (extEntry)
|
|
||||||
ExtensionEntry *extEntry;
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -108,12 +108,6 @@ XvMCDestroySubpictureRes(pointer data, XID id)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
XvMCResetProc (ExtensionEntry *extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcXvMCQueryVersion(ClientPtr client)
|
ProcXvMCQueryVersion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -688,7 +682,7 @@ XvMCExtensionInit(void)
|
||||||
|
|
||||||
extEntry = AddExtension(XvMCName, XvMCNumEvents, XvMCNumErrors,
|
extEntry = AddExtension(XvMCName, XvMCNumEvents, XvMCNumErrors,
|
||||||
ProcXvMCDispatch, SProcXvMCDispatch,
|
ProcXvMCDispatch, SProcXvMCDispatch,
|
||||||
XvMCResetProc, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
|
|
||||||
if(!extEntry) return;
|
if(!extEntry) return;
|
||||||
|
|
||||||
|
|
|
@ -77,11 +77,6 @@ CompositeClientCallback (CallbackListPtr *list,
|
||||||
pCompositeClient->minor_version = 0;
|
pCompositeClient->minor_version = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
CompositeResetProc (ExtensionEntry *extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
FreeCompositeClientWindow (pointer value, XID ccwid)
|
FreeCompositeClientWindow (pointer value, XID ccwid)
|
||||||
{
|
{
|
||||||
|
@ -598,7 +593,7 @@ CompositeExtensionInit (void)
|
||||||
|
|
||||||
extEntry = AddExtension (COMPOSITE_NAME, 0, 0,
|
extEntry = AddExtension (COMPOSITE_NAME, 0, 0,
|
||||||
ProcCompositeDispatch, SProcCompositeDispatch,
|
ProcCompositeDispatch, SProcCompositeDispatch,
|
||||||
CompositeResetProc, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
if (!extEntry)
|
if (!extEntry)
|
||||||
return;
|
return;
|
||||||
CompositeReqCode = (CARD8) extEntry->base;
|
CompositeReqCode = (CARD8) extEntry->base;
|
||||||
|
|
|
@ -113,10 +113,6 @@ static int _DMXXineramaActive(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void DMXResetProc(ExtensionEntry *extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Initialize the extension. */
|
/** Initialize the extension. */
|
||||||
void DMXExtensionInit(void)
|
void DMXExtensionInit(void)
|
||||||
{
|
{
|
||||||
|
@ -124,7 +120,7 @@ void DMXExtensionInit(void)
|
||||||
|
|
||||||
if ((extEntry = AddExtension(DMX_EXTENSION_NAME, 0, 0,
|
if ((extEntry = AddExtension(DMX_EXTENSION_NAME, 0, 0,
|
||||||
ProcDMXDispatch, SProcDMXDispatch,
|
ProcDMXDispatch, SProcDMXDispatch,
|
||||||
DMXResetProc, StandardMinorOpcode)))
|
NULL, StandardMinorOpcode)))
|
||||||
DMXCode = extEntry->base;
|
DMXCode = extEntry->base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,8 +92,6 @@ static DISPATCH_PROC(SProcXF86DRIQueryVersion);
|
||||||
static DISPATCH_PROC(SProcXF86DRIQueryDirectRenderingCapable);
|
static DISPATCH_PROC(SProcXF86DRIQueryDirectRenderingCapable);
|
||||||
static DISPATCH_PROC(SProcXF86DRIDispatch);
|
static DISPATCH_PROC(SProcXF86DRIDispatch);
|
||||||
|
|
||||||
static void XF86DRIResetProc(ExtensionEntry* extEntry);
|
|
||||||
|
|
||||||
static Bool ephyrDRIScreenInit (ScreenPtr a_screen) ;
|
static Bool ephyrDRIScreenInit (ScreenPtr a_screen) ;
|
||||||
static Bool ephyrDRICreateWindow (WindowPtr a_win) ;
|
static Bool ephyrDRICreateWindow (WindowPtr a_win) ;
|
||||||
static Bool ephyrDRIDestroyWindow (WindowPtr a_win) ;
|
static Bool ephyrDRIDestroyWindow (WindowPtr a_win) ;
|
||||||
|
@ -150,7 +148,7 @@ ephyrDRIExtensionInit (ScreenPtr a_screen)
|
||||||
XF86DRINumberErrors,
|
XF86DRINumberErrors,
|
||||||
ProcXF86DRIDispatch,
|
ProcXF86DRIDispatch,
|
||||||
SProcXF86DRIDispatch,
|
SProcXF86DRIDispatch,
|
||||||
XF86DRIResetProc,
|
NULL,
|
||||||
StandardMinorOpcode))) {
|
StandardMinorOpcode))) {
|
||||||
DRIReqCode = (unsigned char)extEntry->base;
|
DRIReqCode = (unsigned char)extEntry->base;
|
||||||
DRIErrorBase = extEntry->errorBase;
|
DRIErrorBase = extEntry->errorBase;
|
||||||
|
@ -612,14 +610,6 @@ out:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
XF86DRIResetProc (
|
|
||||||
ExtensionEntry* extEntry
|
|
||||||
)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcXF86DRIQueryVersion (register ClientPtr client)
|
ProcXF86DRIQueryVersion (register ClientPtr client)
|
||||||
{
|
{
|
||||||
|
|
|
@ -65,10 +65,6 @@ typedef struct {
|
||||||
#define VM_SETPRIV(c,p) \
|
#define VM_SETPRIV(c,p) \
|
||||||
dixSetPrivate(&(c)->devPrivates, VidModeClientPrivateKey, p)
|
dixSetPrivate(&(c)->devPrivates, VidModeClientPrivateKey, p)
|
||||||
|
|
||||||
static void XF86VidModeResetProc(
|
|
||||||
ExtensionEntry* /* extEntry */
|
|
||||||
);
|
|
||||||
|
|
||||||
static DISPATCH_PROC(ProcXF86VidModeDispatch);
|
static DISPATCH_PROC(ProcXF86VidModeDispatch);
|
||||||
static DISPATCH_PROC(ProcXF86VidModeGetAllModeLines);
|
static DISPATCH_PROC(ProcXF86VidModeGetAllModeLines);
|
||||||
static DISPATCH_PROC(ProcXF86VidModeGetModeLine);
|
static DISPATCH_PROC(ProcXF86VidModeGetModeLine);
|
||||||
|
@ -199,7 +195,7 @@ XFree86VidModeExtensionInit(void)
|
||||||
XF86VidModeNumberErrors,
|
XF86VidModeNumberErrors,
|
||||||
ProcXF86VidModeDispatch,
|
ProcXF86VidModeDispatch,
|
||||||
SProcXF86VidModeDispatch,
|
SProcXF86VidModeDispatch,
|
||||||
XF86VidModeResetProc,
|
NULL,
|
||||||
StandardMinorOpcode))) {
|
StandardMinorOpcode))) {
|
||||||
#if 0
|
#if 0
|
||||||
XF86VidModeReqCode = (unsigned char)extEntry->base;
|
XF86VidModeReqCode = (unsigned char)extEntry->base;
|
||||||
|
@ -212,13 +208,6 @@ XFree86VidModeExtensionInit(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
XF86VidModeResetProc (extEntry)
|
|
||||||
ExtensionEntry* extEntry;
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ClientMajorVersion(ClientPtr client)
|
ClientMajorVersion(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
|
|
@ -322,11 +322,6 @@ SProcDRI2Dispatch (ClientPtr client)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
DRI2ResetProc (ExtensionEntry *extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static int DRI2DrawableGone(pointer p, XID id)
|
static int DRI2DrawableGone(pointer p, XID id)
|
||||||
{
|
{
|
||||||
DrawablePtr pDrawable = p;
|
DrawablePtr pDrawable = p;
|
||||||
|
@ -344,7 +339,7 @@ DRI2ExtensionInit(void)
|
||||||
DRI2NumberErrors,
|
DRI2NumberErrors,
|
||||||
ProcDRI2Dispatch,
|
ProcDRI2Dispatch,
|
||||||
SProcDRI2Dispatch,
|
SProcDRI2Dispatch,
|
||||||
DRI2ResetProc,
|
NULL,
|
||||||
StandardMinorOpcode);
|
StandardMinorOpcode);
|
||||||
|
|
||||||
dri2DrawableRes = CreateNewResourceType(DRI2DrawableGone);
|
dri2DrawableRes = CreateNewResourceType(DRI2DrawableGone);
|
||||||
|
|
|
@ -74,8 +74,6 @@ static int WMErrorBase;
|
||||||
static DISPATCH_PROC(ProcAppleWMDispatch);
|
static DISPATCH_PROC(ProcAppleWMDispatch);
|
||||||
static DISPATCH_PROC(SProcAppleWMDispatch);
|
static DISPATCH_PROC(SProcAppleWMDispatch);
|
||||||
|
|
||||||
static void AppleWMResetProc(ExtensionEntry* extEntry);
|
|
||||||
|
|
||||||
static unsigned char WMReqCode = 0;
|
static unsigned char WMReqCode = 0;
|
||||||
static int WMEventBase = 0;
|
static int WMEventBase = 0;
|
||||||
|
|
||||||
|
@ -124,7 +122,7 @@ AppleWMExtensionInit(
|
||||||
AppleWMNumberErrors,
|
AppleWMNumberErrors,
|
||||||
ProcAppleWMDispatch,
|
ProcAppleWMDispatch,
|
||||||
SProcAppleWMDispatch,
|
SProcAppleWMDispatch,
|
||||||
AppleWMResetProc,
|
NULL,
|
||||||
StandardMinorOpcode)))
|
StandardMinorOpcode)))
|
||||||
{
|
{
|
||||||
WMReqCode = (unsigned char)extEntry->base;
|
WMReqCode = (unsigned char)extEntry->base;
|
||||||
|
@ -135,14 +133,6 @@ AppleWMExtensionInit(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
AppleWMResetProc (
|
|
||||||
ExtensionEntry* extEntry
|
|
||||||
)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Updates the _NATIVE_SCREEN_ORIGIN property on the given root window. */
|
/* Updates the _NATIVE_SCREEN_ORIGIN property on the given root window. */
|
||||||
void
|
void
|
||||||
AppleWMSetScreenOrigin(
|
AppleWMSetScreenOrigin(
|
||||||
|
|
|
@ -49,8 +49,6 @@ static int WMErrorBase;
|
||||||
static DISPATCH_PROC(ProcWindowsWMDispatch);
|
static DISPATCH_PROC(ProcWindowsWMDispatch);
|
||||||
static DISPATCH_PROC(SProcWindowsWMDispatch);
|
static DISPATCH_PROC(SProcWindowsWMDispatch);
|
||||||
|
|
||||||
static void WindowsWMResetProc(ExtensionEntry* extEntry);
|
|
||||||
|
|
||||||
static unsigned char WMReqCode = 0;
|
static unsigned char WMReqCode = 0;
|
||||||
static int WMEventBase = 0;
|
static int WMEventBase = 0;
|
||||||
|
|
||||||
|
@ -98,7 +96,7 @@ winWindowsWMExtensionInit ()
|
||||||
WindowsWMNumberErrors,
|
WindowsWMNumberErrors,
|
||||||
ProcWindowsWMDispatch,
|
ProcWindowsWMDispatch,
|
||||||
SProcWindowsWMDispatch,
|
SProcWindowsWMDispatch,
|
||||||
WindowsWMResetProc,
|
NULL,
|
||||||
StandardMinorOpcode)))
|
StandardMinorOpcode)))
|
||||||
{
|
{
|
||||||
WMReqCode = (unsigned char)extEntry->base;
|
WMReqCode = (unsigned char)extEntry->base;
|
||||||
|
@ -108,12 +106,6 @@ winWindowsWMExtensionInit ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
WindowsWMResetProc (ExtensionEntry* extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcWindowsWMQueryVersion(register ClientPtr client)
|
ProcWindowsWMQueryVersion(register ClientPtr client)
|
||||||
{
|
{
|
||||||
|
|
|
@ -86,11 +86,6 @@ RRClientCallback (CallbackListPtr *list,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
RRResetProc (ExtensionEntry *extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
RRCloseScreen (int i, ScreenPtr pScreen)
|
RRCloseScreen (int i, ScreenPtr pScreen)
|
||||||
{
|
{
|
||||||
|
@ -339,7 +334,7 @@ RRExtensionInit (void)
|
||||||
return;
|
return;
|
||||||
extEntry = AddExtension (RANDR_NAME, RRNumberEvents, RRNumberErrors,
|
extEntry = AddExtension (RANDR_NAME, RRNumberEvents, RRNumberErrors,
|
||||||
ProcRRDispatch, SProcRRDispatch,
|
ProcRRDispatch, SProcRRDispatch,
|
||||||
RRResetProc, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
if (!extEntry)
|
if (!extEntry)
|
||||||
return;
|
return;
|
||||||
RRErrorBase = extEntry->errorBase;
|
RRErrorBase = extEntry->errorBase;
|
||||||
|
|
|
@ -415,11 +415,6 @@ SProcRRXineramaDispatch(ClientPtr client)
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
RRXineramaResetProc(ExtensionEntry* extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
RRXineramaExtensionInit(void)
|
RRXineramaExtensionInit(void)
|
||||||
{
|
{
|
||||||
|
@ -439,6 +434,6 @@ RRXineramaExtensionInit(void)
|
||||||
(void) AddExtension(PANORAMIX_PROTOCOL_NAME, 0,0,
|
(void) AddExtension(PANORAMIX_PROTOCOL_NAME, 0,0,
|
||||||
ProcRRXineramaDispatch,
|
ProcRRXineramaDispatch,
|
||||||
SProcRRXineramaDispatch,
|
SProcRRXineramaDispatch,
|
||||||
RRXineramaResetProc,
|
NULL,
|
||||||
StandardMinorOpcode);
|
StandardMinorOpcode);
|
||||||
}
|
}
|
||||||
|
|
|
@ -210,9 +210,6 @@ int (*SProcRenderVector[RenderNumberRequests])(ClientPtr) = {
|
||||||
SProcRenderCreateConicalGradient
|
SProcRenderCreateConicalGradient
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
|
||||||
RenderResetProc (ExtensionEntry *extEntry);
|
|
||||||
|
|
||||||
int RenderErrBase;
|
int RenderErrBase;
|
||||||
DevPrivateKey RenderClientPrivateKey;
|
DevPrivateKey RenderClientPrivateKey;
|
||||||
|
|
||||||
|
@ -252,17 +249,12 @@ RenderExtensionInit (void)
|
||||||
|
|
||||||
extEntry = AddExtension (RENDER_NAME, 0, RenderNumberErrors,
|
extEntry = AddExtension (RENDER_NAME, 0, RenderNumberErrors,
|
||||||
ProcRenderDispatch, SProcRenderDispatch,
|
ProcRenderDispatch, SProcRenderDispatch,
|
||||||
RenderResetProc, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
if (!extEntry)
|
if (!extEntry)
|
||||||
return;
|
return;
|
||||||
RenderErrBase = extEntry->errorBase;
|
RenderErrBase = extEntry->errorBase;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
RenderResetProc (ExtensionEntry *extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcRenderQueryVersion (ClientPtr client)
|
ProcRenderQueryVersion (ClientPtr client)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6199,12 +6199,6 @@ XkbClientGone(pointer data,XID id)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
|
||||||
static void
|
|
||||||
XkbResetProc(ExtensionEntry *extEntry)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
XkbExtensionInit(void)
|
XkbExtensionInit(void)
|
||||||
{
|
{
|
||||||
|
@ -6212,7 +6206,7 @@ XkbExtensionInit(void)
|
||||||
|
|
||||||
if ((extEntry = AddExtension(XkbName, XkbNumberEvents, XkbNumberErrors,
|
if ((extEntry = AddExtension(XkbName, XkbNumberEvents, XkbNumberErrors,
|
||||||
ProcXkbDispatch, SProcXkbDispatch,
|
ProcXkbDispatch, SProcXkbDispatch,
|
||||||
XkbResetProc, StandardMinorOpcode))) {
|
NULL, StandardMinorOpcode))) {
|
||||||
XkbReqCode = (unsigned char)extEntry->base;
|
XkbReqCode = (unsigned char)extEntry->base;
|
||||||
XkbEventBase = (unsigned char)extEntry->eventBase;
|
XkbEventBase = (unsigned char)extEntry->eventBase;
|
||||||
XkbErrorBase = (unsigned char)extEntry->errorBase;
|
XkbErrorBase = (unsigned char)extEntry->errorBase;
|
||||||
|
|
Loading…
Reference in New Issue