Ensure all resource types created have names registered
Calls RegisterResourceName to record the type name for use by X-Resource, XACE/SELinux/XTsol, and DTrace. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
eb750f8b5e
commit
a11c58fa0c
|
@ -42,6 +42,8 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include "sleepuntil.h"
|
#include "sleepuntil.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
#include <X11/extensions/multibufconst.h>
|
#include <X11/extensions/multibufconst.h>
|
||||||
#include <X11/extensions/multibufproto.h>
|
#include <X11/extensions/multibufproto.h>
|
||||||
|
|
||||||
|
@ -481,6 +483,11 @@ MultibufferExtensionInit()
|
||||||
ProcMultibufferDispatch, SProcMultibufferDispatch,
|
ProcMultibufferDispatch, SProcMultibufferDispatch,
|
||||||
MultibufferResetProc, StandardMinorOpcode)))
|
MultibufferResetProc, StandardMinorOpcode)))
|
||||||
{
|
{
|
||||||
|
RegisterResourceName(MultibufferDrawableResType,
|
||||||
|
"MultibufferDrawable");
|
||||||
|
RegisterResourceName(MultibufferResType, "MultibufferBuffer");
|
||||||
|
RegisterResourceName(MultibuffersResType, "MultibufferWindow");
|
||||||
|
RegisterResourceName(OtherClientResType, "MultibufferOtherClient");
|
||||||
MultibufferEventBase = extEntry->eventBase;
|
MultibufferEventBase = extEntry->eventBase;
|
||||||
MultibufferErrorBase = extEntry->errorBase;
|
MultibufferErrorBase = extEntry->errorBase;
|
||||||
EventSwapVector[MultibufferEventBase + MultibufferClobberNotify] = (EventSwapPtr) SClobberNotifyEvent;
|
EventSwapVector[MultibufferEventBase + MultibufferClobberNotify] = (EventSwapPtr) SClobberNotifyEvent;
|
||||||
|
|
|
@ -52,6 +52,7 @@ Equipment Corporation.
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
#include "registry.h"
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
#include "picturestr.h"
|
#include "picturestr.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -513,6 +514,11 @@ void PanoramiXExtensionInit(int argc, char *argv[])
|
||||||
XRT_COLORMAP = CreateNewResourceType(XineramaDeleteResource);
|
XRT_COLORMAP = CreateNewResourceType(XineramaDeleteResource);
|
||||||
|
|
||||||
if (XRT_WINDOW && XRT_PIXMAP && XRT_GC && XRT_COLORMAP) {
|
if (XRT_WINDOW && XRT_PIXMAP && XRT_GC && XRT_COLORMAP) {
|
||||||
|
RegisterResourceName(XRT_WINDOW, "XineramaWindow");
|
||||||
|
RegisterResourceName(XRT_PIXMAP, "XineramaPixmap");
|
||||||
|
RegisterResourceName(XRT_GC, "XineramaGC");
|
||||||
|
RegisterResourceName(XRT_COLORMAP, "XineramaColormap");
|
||||||
|
|
||||||
panoramiXGeneration = serverGeneration;
|
panoramiXGeneration = serverGeneration;
|
||||||
success = TRUE;
|
success = TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,7 @@ in this Software without prior written authorization from the X Consortium.
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
#include "registry.h"
|
||||||
#ifdef PANORAMIX
|
#ifdef PANORAMIX
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
|
@ -266,6 +267,9 @@ ScreenSaverExtensionInit(INITARGS)
|
||||||
ProcScreenSaverDispatch, SProcScreenSaverDispatch,
|
ProcScreenSaverDispatch, SProcScreenSaverDispatch,
|
||||||
NULL, StandardMinorOpcode)))
|
NULL, StandardMinorOpcode)))
|
||||||
{
|
{
|
||||||
|
RegisterResourceName(AttrType, "SaverAttr");
|
||||||
|
RegisterResourceName(SaverEventType, "SaverEvent");
|
||||||
|
RegisterResourceName(SuspendType, "SaverSuspend");
|
||||||
ScreenSaverEventBase = extEntry->eventBase;
|
ScreenSaverEventBase = extEntry->eventBase;
|
||||||
EventSwapVector[ScreenSaverEventBase] = (EventSwapPtr) SScreenSaverNotifyEvent;
|
EventSwapVector[ScreenSaverEventBase] = (EventSwapPtr) SScreenSaverNotifyEvent;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
#include "registry.h"
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include <X11/extensions/shapeproto.h>
|
#include <X11/extensions/shapeproto.h>
|
||||||
#include "regionstr.h"
|
#include "regionstr.h"
|
||||||
|
@ -134,6 +135,8 @@ ShapeExtensionInit(void)
|
||||||
ProcShapeDispatch, SProcShapeDispatch,
|
ProcShapeDispatch, SProcShapeDispatch,
|
||||||
NULL, StandardMinorOpcode)))
|
NULL, StandardMinorOpcode)))
|
||||||
{
|
{
|
||||||
|
RegisterResourceName(ClientType, "ShapeClient");
|
||||||
|
RegisterResourceName(ShapeEventType, "ShapeEvent");
|
||||||
ShapeEventBase = extEntry->eventBase;
|
ShapeEventBase = extEntry->eventBase;
|
||||||
EventSwapVector[ShapeEventBase] = (EventSwapPtr) SShapeNotifyEvent;
|
EventSwapVector[ShapeEventBase] = (EventSwapPtr) SShapeNotifyEvent;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include "shmint.h"
|
#include "shmint.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
#include "registry.h"
|
||||||
#include <X11/extensions/shmproto.h>
|
#include <X11/extensions/shmproto.h>
|
||||||
#include <X11/Xfuncproto.h>
|
#include <X11/Xfuncproto.h>
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
@ -283,6 +284,7 @@ ShmExtensionInit(INITARGS)
|
||||||
ProcShmDispatch, SProcShmDispatch,
|
ProcShmDispatch, SProcShmDispatch,
|
||||||
ShmResetProc, StandardMinorOpcode)))
|
ShmResetProc, StandardMinorOpcode)))
|
||||||
{
|
{
|
||||||
|
RegisterResourceName(ShmSegType, "ShmSeg");
|
||||||
ShmReqCode = (unsigned char)extEntry->base;
|
ShmReqCode = (unsigned char)extEntry->base;
|
||||||
ShmCompletionCode = extEntry->eventBase;
|
ShmCompletionCode = extEntry->eventBase;
|
||||||
BadShmSegCode = extEntry->errorBase;
|
BadShmSegCode = extEntry->errorBase;
|
||||||
|
|
|
@ -39,6 +39,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "pixmapstr.h"
|
#include "pixmapstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
typedef struct _Sertafied {
|
typedef struct _Sertafied {
|
||||||
struct _Sertafied *next;
|
struct _Sertafied *next;
|
||||||
|
@ -90,6 +91,7 @@ ClientSleepUntil (ClientPtr client,
|
||||||
SertafiedResType = CreateNewResourceType (SertafiedDelete);
|
SertafiedResType = CreateNewResourceType (SertafiedDelete);
|
||||||
if (!SertafiedResType)
|
if (!SertafiedResType)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
RegisterResourceName(SertafiedResType, "ClientSleep");
|
||||||
SertafiedGeneration = serverGeneration;
|
SertafiedGeneration = serverGeneration;
|
||||||
BlockHandlerRegistered = FALSE;
|
BlockHandlerRegistered = FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
#include "registry.h"
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include <X11/extensions/syncproto.h>
|
#include <X11/extensions/syncproto.h>
|
||||||
#include "syncsrv.h"
|
#include "syncsrv.h"
|
||||||
|
@ -878,6 +879,7 @@ SyncCreateSystemCounter(
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
RegisterResourceName(RTCounter, "SyncCounter");
|
||||||
}
|
}
|
||||||
|
|
||||||
pCounter = SyncCreateCounter(NULL, FakeClientID(0), initial);
|
pCounter = SyncCreateCounter(NULL, FakeClientID(0), initial);
|
||||||
|
@ -2133,6 +2135,10 @@ SyncExtensionInit(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RegisterResourceName(RTCounter, "SyncCounter");
|
||||||
|
RegisterResourceName(RTAlarm, "SyncAlarm");
|
||||||
|
RegisterResourceName(RTAwait, "SyncAwait");
|
||||||
|
RegisterResourceName(RTAlarmClient, "SyncAlarmClient");
|
||||||
SyncEventBase = extEntry->eventBase;
|
SyncEventBase = extEntry->eventBase;
|
||||||
SyncErrorBase = extEntry->errorBase;
|
SyncErrorBase = extEntry->errorBase;
|
||||||
EventSwapVector[SyncEventBase + XSyncCounterNotify] = (EventSwapPtr) SCounterNotifyEvent;
|
EventSwapVector[SyncEventBase + XSyncCounterNotify] = (EventSwapPtr) SCounterNotifyEvent;
|
||||||
|
|
|
@ -36,6 +36,7 @@ SOFTWARE.
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
#include "registry.h"
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
|
|
||||||
#include <X11/extensions/Xv.h>
|
#include <X11/extensions/Xv.h>
|
||||||
|
@ -1867,6 +1868,8 @@ void XineramifyXv(void)
|
||||||
|
|
||||||
if (!xvsp0 || !XvXRTPort) return;
|
if (!xvsp0 || !XvXRTPort) return;
|
||||||
|
|
||||||
|
RegisterResourceName(XvXRTPort, "XvXRTPort");
|
||||||
|
|
||||||
for(i = 0; i < xvsp0->nAdaptors; i++) {
|
for(i = 0; i < xvsp0->nAdaptors; i++) {
|
||||||
refAdapt = xvsp0->pAdaptors + i;
|
refAdapt = xvsp0->pAdaptors + i;
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,7 @@ SOFTWARE.
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
#include "registry.h"
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
|
|
||||||
|
@ -213,36 +214,42 @@ CreateResourceTypes(void)
|
||||||
ErrorF("CreateResourceTypes: failed to allocate port resource.\n");
|
ErrorF("CreateResourceTypes: failed to allocate port resource.\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
RegisterResourceName(XvRTPort, "XvRTPort");
|
||||||
|
|
||||||
if (!(XvRTGrab = CreateNewResourceType(XvdiDestroyGrab)))
|
if (!(XvRTGrab = CreateNewResourceType(XvdiDestroyGrab)))
|
||||||
{
|
{
|
||||||
ErrorF("CreateResourceTypes: failed to allocate grab resource.\n");
|
ErrorF("CreateResourceTypes: failed to allocate grab resource.\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
RegisterResourceName(XvRTGrab, "XvRTGrab");
|
||||||
|
|
||||||
if (!(XvRTEncoding = CreateNewResourceType(XvdiDestroyEncoding)))
|
if (!(XvRTEncoding = CreateNewResourceType(XvdiDestroyEncoding)))
|
||||||
{
|
{
|
||||||
ErrorF("CreateResourceTypes: failed to allocate encoding resource.\n");
|
ErrorF("CreateResourceTypes: failed to allocate encoding resource.\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
RegisterResourceName(XvRTEncoding, "XvRTEncoding");
|
||||||
|
|
||||||
if (!(XvRTVideoNotify = CreateNewResourceType(XvdiDestroyVideoNotify)))
|
if (!(XvRTVideoNotify = CreateNewResourceType(XvdiDestroyVideoNotify)))
|
||||||
{
|
{
|
||||||
ErrorF("CreateResourceTypes: failed to allocate video notify resource.\n");
|
ErrorF("CreateResourceTypes: failed to allocate video notify resource.\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
RegisterResourceName(XvRTVideoNotify, "XvRTVideoNotify");
|
||||||
|
|
||||||
if (!(XvRTVideoNotifyList = CreateNewResourceType(XvdiDestroyVideoNotifyList)))
|
if (!(XvRTVideoNotifyList = CreateNewResourceType(XvdiDestroyVideoNotifyList)))
|
||||||
{
|
{
|
||||||
ErrorF("CreateResourceTypes: failed to allocate video notify list resource.\n");
|
ErrorF("CreateResourceTypes: failed to allocate video notify list resource.\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
RegisterResourceName(XvRTVideoNotifyList, "XvRTVideoNotifyList");
|
||||||
|
|
||||||
if (!(XvRTPortNotify = CreateNewResourceType(XvdiDestroyPortNotify)))
|
if (!(XvRTPortNotify = CreateNewResourceType(XvdiDestroyPortNotify)))
|
||||||
{
|
{
|
||||||
ErrorF("CreateResourceTypes: failed to allocate port notify resource.\n");
|
ErrorF("CreateResourceTypes: failed to allocate port notify resource.\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
RegisterResourceName(XvRTPortNotify, "XvRTPortNotify");
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
#include "registry.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
|
@ -676,12 +677,15 @@ XvMCExtensionInit(void)
|
||||||
|
|
||||||
if(!(XvMCRTContext = CreateNewResourceType(XvMCDestroyContextRes)))
|
if(!(XvMCRTContext = CreateNewResourceType(XvMCDestroyContextRes)))
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(XvMCRTContext, "XvMCRTContext");
|
||||||
|
|
||||||
if(!(XvMCRTSurface = CreateNewResourceType(XvMCDestroySurfaceRes)))
|
if(!(XvMCRTSurface = CreateNewResourceType(XvMCDestroySurfaceRes)))
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(XvMCRTSurface, "XvMCRTSurface");
|
||||||
|
|
||||||
if(!(XvMCRTSubpicture = CreateNewResourceType(XvMCDestroySubpictureRes)))
|
if(!(XvMCRTSubpicture = CreateNewResourceType(XvMCDestroySubpictureRes)))
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(XvMCRTSubpicture, "XvMCRTSubpicture");
|
||||||
|
|
||||||
extEntry = AddExtension(XvMCName, XvMCNumEvents, XvMCNumErrors,
|
extEntry = AddExtension(XvMCName, XvMCNumEvents, XvMCNumErrors,
|
||||||
ProcXvMCDispatch, SProcXvMCDispatch,
|
ProcXvMCDispatch, SProcXvMCDispatch,
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
|
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
#include "registry.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
static CARD8 CompositeReqCode;
|
static CARD8 CompositeReqCode;
|
||||||
|
@ -549,14 +550,19 @@ CompositeExtensionInit (void)
|
||||||
CompositeClientWindowType = CreateNewResourceType (FreeCompositeClientWindow);
|
CompositeClientWindowType = CreateNewResourceType (FreeCompositeClientWindow);
|
||||||
if (!CompositeClientWindowType)
|
if (!CompositeClientWindowType)
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(CompositeClientWindowType, "CompositeClientWindow");
|
||||||
|
|
||||||
CompositeClientSubwindowsType = CreateNewResourceType (FreeCompositeClientSubwindows);
|
CompositeClientSubwindowsType = CreateNewResourceType (FreeCompositeClientSubwindows);
|
||||||
if (!CompositeClientSubwindowsType)
|
if (!CompositeClientSubwindowsType)
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(CompositeClientSubwindowsType,
|
||||||
|
"CompositeClientSubwindows");
|
||||||
|
|
||||||
CompositeClientOverlayType = CreateNewResourceType (FreeCompositeClientOverlay);
|
CompositeClientOverlayType = CreateNewResourceType (FreeCompositeClientOverlay);
|
||||||
if (!CompositeClientOverlayType)
|
if (!CompositeClientOverlayType)
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(CompositeClientOverlayType,
|
||||||
|
"CompositeClientOverlay");
|
||||||
|
|
||||||
if (!dixRequestPrivate(CompositeClientPrivateKey,
|
if (!dixRequestPrivate(CompositeClientPrivateKey,
|
||||||
sizeof(CompositeClientRec)))
|
sizeof(CompositeClientRec)))
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "registry.h"
|
||||||
#include "damageextint.h"
|
#include "damageextint.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
|
@ -500,10 +501,12 @@ DamageExtensionInit(void)
|
||||||
DamageExtType = CreateNewResourceType (FreeDamageExt);
|
DamageExtType = CreateNewResourceType (FreeDamageExt);
|
||||||
if (!DamageExtType)
|
if (!DamageExtType)
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(DamageExtType, "DamageExt");
|
||||||
|
|
||||||
DamageExtWinType = CreateNewResourceType (FreeDamageExtWin);
|
DamageExtWinType = CreateNewResourceType (FreeDamageExtWin);
|
||||||
if (!DamageExtWinType)
|
if (!DamageExtWinType)
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(DamageExtWinType, "DamageExtWin");
|
||||||
|
|
||||||
if (!dixRequestPrivate(DamageClientPrivateKey, sizeof (DamageClientRec)))
|
if (!dixRequestPrivate(DamageClientPrivateKey, sizeof (DamageClientRec)))
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
#include "dbestruct.h"
|
#include "dbestruct.h"
|
||||||
#include "midbe.h"
|
#include "midbe.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
/* GLOBALS */
|
/* GLOBALS */
|
||||||
|
|
||||||
|
@ -1577,11 +1578,13 @@ DbeExtensionInit(void)
|
||||||
if (!dbeDrawableResType)
|
if (!dbeDrawableResType)
|
||||||
return;
|
return;
|
||||||
dbeDrawableResType |= RC_DRAWABLE;
|
dbeDrawableResType |= RC_DRAWABLE;
|
||||||
|
RegisterResourceName(dbeDrawableResType, "dbeDrawable");
|
||||||
|
|
||||||
dbeWindowPrivResType =
|
dbeWindowPrivResType =
|
||||||
CreateNewResourceType(DbeWindowPrivDelete);
|
CreateNewResourceType(DbeWindowPrivDelete);
|
||||||
if (!dbeWindowPrivResType)
|
if (!dbeWindowPrivResType)
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(dbeWindowPrivResType, "dbeWindow");
|
||||||
|
|
||||||
if (!dixRegisterPrivateOffset(dbeDrawableResType,
|
if (!dixRegisterPrivateOffset(dbeDrawableResType,
|
||||||
offsetof(PixmapRec, devPrivates)))
|
offsetof(PixmapRec, devPrivates)))
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
#include "glxvisuals.h"
|
#include "glxvisuals.h"
|
||||||
#include "micmap.h"
|
#include "micmap.h"
|
||||||
#include "glxswap.h"
|
#include "glxswap.h"
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Stubs to satisfy miinitext.c references.
|
** Stubs to satisfy miinitext.c references.
|
||||||
|
@ -303,6 +304,12 @@ void GlxExtensionInit(void)
|
||||||
!__glXWindowRes || !__glXPbufferRes)
|
!__glXWindowRes || !__glXPbufferRes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
RegisterResourceName(__glXContextRes, "GLXContext");
|
||||||
|
RegisterResourceName(__glXClientRes, "GLXClient");
|
||||||
|
RegisterResourceName(__glXPixmapRes, "GLXPixmap");
|
||||||
|
RegisterResourceName(__glXWindowRes, "GLXWindow");
|
||||||
|
RegisterResourceName(__glXPbufferRes, "GLXPbuffer");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Add extension to server extensions.
|
** Add extension to server extensions.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
#include "privates.h"
|
#include "privates.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "registry.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
@ -145,6 +146,7 @@ ephyrDRIExtensionInit (ScreenPtr a_screen)
|
||||||
EPHYR_LOG_ERROR ("failed to register DRI event resource type\n") ;
|
EPHYR_LOG_ERROR ("failed to register DRI event resource type\n") ;
|
||||||
goto out ;
|
goto out ;
|
||||||
}
|
}
|
||||||
|
RegisterResourceName(EventType, "DRIEvents");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((extEntry = AddExtension(XF86DRINAME,
|
if ((extEntry = AddExtension(XF86DRINAME,
|
||||||
|
|
|
@ -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 "registry.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include <X11/extensions/xf86vmproto.h>
|
#include <X11/extensions/xf86vmproto.h>
|
||||||
|
@ -201,6 +202,7 @@ XFree86VidModeExtensionInit(void)
|
||||||
#endif
|
#endif
|
||||||
VidModeErrorBase = extEntry->errorBase;
|
VidModeErrorBase = extEntry->errorBase;
|
||||||
#ifdef XF86VIDMODE_EVENTS
|
#ifdef XF86VIDMODE_EVENTS
|
||||||
|
RegisterResourceName(EventType, "VidModeEvent");
|
||||||
XF86VidModeEventBase = extEntry->eventBase;
|
XF86VidModeEventBase = extEntry->eventBase;
|
||||||
EventSwapVector[XF86VidModeEventBase] = (EventSwapPtr)SXF86VidModeNotifyEvent;
|
EventSwapVector[XF86VidModeEventBase] = (EventSwapPtr)SXF86VidModeNotifyEvent;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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 "registry.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
@ -794,6 +795,8 @@ DRIExtensionInit(void)
|
||||||
|
|
||||||
if (!DRIDrawablePrivResType || !DRIContextPrivResType)
|
if (!DRIDrawablePrivResType || !DRIContextPrivResType)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
RegisterResourceName(DRIDrawablePrivResType, "DRIDrawable");
|
||||||
|
RegisterResourceName(DRIContextPrivResType, "DRIContext");
|
||||||
|
|
||||||
RegisterBlockAndWakeupHandlers(DRIBlockHandler, DRIWakeupHandler, NULL);
|
RegisterBlockAndWakeupHandlers(DRIBlockHandler, DRIWakeupHandler, NULL);
|
||||||
|
|
||||||
|
|
|
@ -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 "registry.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
@ -111,6 +112,9 @@ XFree86DRIExtensionInit(void)
|
||||||
StandardMinorOpcode))) {
|
StandardMinorOpcode))) {
|
||||||
DRIReqCode = (unsigned char)extEntry->base;
|
DRIReqCode = (unsigned char)extEntry->base;
|
||||||
DRIErrorBase = extEntry->errorBase;
|
DRIErrorBase = extEntry->errorBase;
|
||||||
|
#ifdef XF86DRI_EVENTS
|
||||||
|
RegisterResourceName(EventType, "DRIEvent");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "pixmapstr.h"
|
#include "pixmapstr.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "registry.h"
|
||||||
#include "xf86drm.h"
|
#include "xf86drm.h"
|
||||||
#include "xfixes.h"
|
#include "xfixes.h"
|
||||||
#include "dri2.h"
|
#include "dri2.h"
|
||||||
|
@ -421,6 +422,8 @@ DRI2ExtensionInit(void)
|
||||||
if (!dri2DrawableRes)
|
if (!dri2DrawableRes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
RegisterResourceName(dri2DrawableRes, "DRI2Drawable");
|
||||||
|
|
||||||
dri2Extension = AddExtension(DRI2_NAME,
|
dri2Extension = AddExtension(DRI2_NAME,
|
||||||
DRI2NumberEvents,
|
DRI2NumberEvents,
|
||||||
DRI2NumberErrors,
|
DRI2NumberErrors,
|
||||||
|
|
|
@ -37,6 +37,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
|
#include "registry.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
@ -129,6 +130,8 @@ AppleWMExtensionInit(
|
||||||
WMEventBase = extEntry->eventBase;
|
WMEventBase = extEntry->eventBase;
|
||||||
EventSwapVector[WMEventBase] = (EventSwapPtr) SNotifyEvent;
|
EventSwapVector[WMEventBase] = (EventSwapPtr) SNotifyEvent;
|
||||||
appleWMProcs = procsPtr;
|
appleWMProcs = procsPtr;
|
||||||
|
RegisterResourceName(ClientType, "WMClient");
|
||||||
|
RegisterResourceName(EventType, "WMEvent");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,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 "registry.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
@ -279,6 +280,9 @@ DRIExtensionInit(void)
|
||||||
{
|
{
|
||||||
DRIDrawablePrivResType = CreateNewResourceType(DRIDrawablePrivDelete);
|
DRIDrawablePrivResType = CreateNewResourceType(DRIDrawablePrivDelete);
|
||||||
|
|
||||||
|
if (DRIDrawablePrivResType != 0)
|
||||||
|
RegisterResourceName(DRIDrawablePrivResType, "DRIDrawable");
|
||||||
|
|
||||||
return (DRIDrawablePrivResType != 0);
|
return (DRIDrawablePrivResType != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,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 "registry.h"
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
@ -102,6 +103,8 @@ winWindowsWMExtensionInit ()
|
||||||
WMErrorBase = extEntry->errorBase;
|
WMErrorBase = extEntry->errorBase;
|
||||||
WMEventBase = extEntry->eventBase;
|
WMEventBase = extEntry->eventBase;
|
||||||
EventSwapVector[WMEventBase] = (EventSwapPtr) SNotifyEvent;
|
EventSwapVector[WMEventBase] = (EventSwapPtr) SNotifyEvent;
|
||||||
|
RegisterResourceName(ClientType, "WMClient");
|
||||||
|
RegisterResourceName(eventResourceType, "WMEvent");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,7 @@ SOFTWARE.
|
||||||
#include "mifpoly.h"
|
#include "mifpoly.h"
|
||||||
#include "mi.h"
|
#include "mi.h"
|
||||||
#include "mifillarc.h"
|
#include "mifillarc.h"
|
||||||
|
#include "registry.h"
|
||||||
#include <X11/Xfuncproto.h>
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
static double miDsin(double a);
|
static double miDsin(double a);
|
||||||
|
@ -867,6 +868,7 @@ miComputeWideEllipse(
|
||||||
if (!cacheType)
|
if (!cacheType)
|
||||||
{
|
{
|
||||||
cacheType = CreateNewResourceType(miFreeArcCache);
|
cacheType = CreateNewResourceType(miFreeArcCache);
|
||||||
|
RegisterResourceName(cacheType, "miArcCache");
|
||||||
(void) AddResource(FakeClientID(0), cacheType, NULL);
|
(void) AddResource(FakeClientID(0), cacheType, NULL);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
#include "randrstr.h"
|
#include "randrstr.h"
|
||||||
|
|
||||||
/* From render.h */
|
/* From render.h */
|
||||||
|
@ -339,9 +341,11 @@ RRExtensionInit (void)
|
||||||
RRClientType = CreateNewResourceType(RRFreeClient);
|
RRClientType = CreateNewResourceType(RRFreeClient);
|
||||||
if (!RRClientType)
|
if (!RRClientType)
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(RRClientType, "RandRClient");
|
||||||
RREventType = CreateNewResourceType(RRFreeEvents);
|
RREventType = CreateNewResourceType(RRFreeEvents);
|
||||||
if (!RREventType)
|
if (!RREventType)
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(RREventType, "RandREvent");
|
||||||
extEntry = AddExtension (RANDR_NAME, RRNumberEvents, RRNumberErrors,
|
extEntry = AddExtension (RANDR_NAME, RRNumberEvents, RRNumberErrors,
|
||||||
ProcRRDispatch, SProcRRDispatch,
|
ProcRRDispatch, SProcRRDispatch,
|
||||||
NULL, StandardMinorOpcode);
|
NULL, StandardMinorOpcode);
|
||||||
|
|
|
@ -42,6 +42,7 @@ and Jim Haggerty of Metheus.
|
||||||
#include "set.h"
|
#include "set.h"
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -2878,6 +2879,7 @@ RecordExtensionInit(void)
|
||||||
RTContext = CreateNewResourceType(RecordDeleteContext);
|
RTContext = CreateNewResourceType(RecordDeleteContext);
|
||||||
if (!RTContext)
|
if (!RTContext)
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(RTContext, "RecordContext");
|
||||||
|
|
||||||
ppAllContexts = NULL;
|
ppAllContexts = NULL;
|
||||||
numContexts = numEnabledContexts = numEnabledRCAPs = 0;
|
numContexts = numEnabledContexts = numEnabledRCAPs = 0;
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
#include "cursorstr.h"
|
#include "cursorstr.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
#if HAVE_STDINT_H
|
#if HAVE_STDINT_H
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -3241,6 +3242,9 @@ PanoramiXRenderInit (void)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
XRT_PICTURE = CreateNewResourceType (XineramaDeleteResource);
|
XRT_PICTURE = CreateNewResourceType (XineramaDeleteResource);
|
||||||
|
if (XRT_PICTURE)
|
||||||
|
RegisterResourceName(XRT_PICTURE, "XineramaPicture");
|
||||||
|
|
||||||
for (i = 0; i < RenderNumberRequests; i++)
|
for (i = 0; i < RenderNumberRequests; i++)
|
||||||
PanoramiXSaveRenderVector[i] = ProcRenderVector[i];
|
PanoramiXSaveRenderVector[i] = ProcRenderVector[i];
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
static RESTYPE CursorClientType;
|
static RESTYPE CursorClientType;
|
||||||
static RESTYPE CursorHideCountType;
|
static RESTYPE CursorHideCountType;
|
||||||
|
@ -1085,8 +1086,14 @@ XFixesCursorInit (void)
|
||||||
SetCursorScreen (pScreen, cs);
|
SetCursorScreen (pScreen, cs);
|
||||||
}
|
}
|
||||||
CursorClientType = CreateNewResourceType(CursorFreeClient);
|
CursorClientType = CreateNewResourceType(CursorFreeClient);
|
||||||
|
if (CursorClientType)
|
||||||
|
RegisterResourceName(CursorClientType, "XFixesCursorClient");
|
||||||
CursorHideCountType = CreateNewResourceType(CursorFreeHideCount);
|
CursorHideCountType = CreateNewResourceType(CursorFreeHideCount);
|
||||||
|
if (CursorHideCountType)
|
||||||
|
RegisterResourceName(CursorClientType, "XFixesCursorClient");
|
||||||
CursorWindowType = CreateNewResourceType(CursorFreeWindow);
|
CursorWindowType = CreateNewResourceType(CursorFreeWindow);
|
||||||
|
if (CursorWindowType)
|
||||||
|
RegisterResourceName(CursorWindowType, "XFixesCursorWindow");
|
||||||
|
|
||||||
if (pInvisibleCursor == NULL) {
|
if (pInvisibleCursor == NULL) {
|
||||||
pInvisibleCursor = createInvisibleCursor();
|
pInvisibleCursor = createInvisibleCursor();
|
||||||
|
|
|
@ -33,6 +33,7 @@ extern int RenderErrBase;
|
||||||
#include <regionstr.h>
|
#include <regionstr.h>
|
||||||
#include <gcstruct.h>
|
#include <gcstruct.h>
|
||||||
#include <window.h>
|
#include <window.h>
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
RESTYPE RegionResType;
|
RESTYPE RegionResType;
|
||||||
|
|
||||||
|
@ -65,6 +66,9 @@ XFixesRegionInit (void)
|
||||||
{
|
{
|
||||||
RegionResType = CreateNewResourceType(RegionResFree);
|
RegionResType = CreateNewResourceType(RegionResFree);
|
||||||
|
|
||||||
|
if (RegionResType)
|
||||||
|
RegisterResourceName(RegionResType, "XFixesRegion");
|
||||||
|
|
||||||
return (RegionResType != 0);
|
return (RegionResType != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include "xfixesint.h"
|
#include "xfixesint.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
static RESTYPE SelectionClientType, SelectionWindowType;
|
static RESTYPE SelectionClientType, SelectionWindowType;
|
||||||
static Bool SelectionCallbackRegistered = FALSE;
|
static Bool SelectionCallbackRegistered = FALSE;
|
||||||
|
@ -285,6 +286,11 @@ Bool
|
||||||
XFixesSelectionInit (void)
|
XFixesSelectionInit (void)
|
||||||
{
|
{
|
||||||
SelectionClientType = CreateNewResourceType(SelectionFreeClient);
|
SelectionClientType = CreateNewResourceType(SelectionFreeClient);
|
||||||
|
if (SelectionClientType)
|
||||||
|
RegisterResourceName(SelectionClientType, "XFixesSelectionClient");
|
||||||
SelectionWindowType = CreateNewResourceType(SelectionFreeWindow);
|
SelectionWindowType = CreateNewResourceType(SelectionFreeWindow);
|
||||||
|
if (SelectionWindowType)
|
||||||
|
RegisterResourceName(SelectionWindowType, "XFixesSelectionWindow");
|
||||||
|
|
||||||
return SelectionClientType && SelectionWindowType;
|
return SelectionClientType && SelectionWindowType;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "xkb.h"
|
#include "xkb.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XKMformat.h>
|
#include <X11/extensions/XKMformat.h>
|
||||||
|
@ -6707,6 +6708,7 @@ XkbExtensionInit(void)
|
||||||
RT_XKBCLIENT = CreateNewResourceType(XkbClientGone);
|
RT_XKBCLIENT = CreateNewResourceType(XkbClientGone);
|
||||||
if (!RT_XKBCLIENT)
|
if (!RT_XKBCLIENT)
|
||||||
return;
|
return;
|
||||||
|
RegisterResourceName(RT_XKBCLIENT, "XkbClient");
|
||||||
|
|
||||||
if ((extEntry = AddExtension(XkbName, XkbNumberEvents, XkbNumberErrors,
|
if ((extEntry = AddExtension(XkbName, XkbNumberEvents, XkbNumberErrors,
|
||||||
ProcXkbDispatch, SProcXkbDispatch,
|
ProcXkbDispatch, SProcXkbDispatch,
|
||||||
|
|
Loading…
Reference in New Issue