registry: Remove registry code from XTest extension.
Moving all the names into dix/registry.c
This commit is contained in:
parent
5fea1ed50f
commit
edcf490cdb
19
Xext/xtest.c
19
Xext/xtest.c
|
@ -42,7 +42,6 @@ from The Open Group.
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "dixevents.h"
|
#include "dixevents.h"
|
||||||
#include "sleepuntil.h"
|
#include "sleepuntil.h"
|
||||||
#include "registry.h"
|
|
||||||
#define _XTEST_SERVER_
|
#define _XTEST_SERVER_
|
||||||
#include <X11/extensions/XTest.h>
|
#include <X11/extensions/XTest.h>
|
||||||
#include <X11/extensions/xteststr.h>
|
#include <X11/extensions/xteststr.h>
|
||||||
|
@ -85,21 +84,9 @@ static DISPATCH_PROC(SProcXTestGrabControl);
|
||||||
void
|
void
|
||||||
XTestExtensionInit(INITARGS)
|
XTestExtensionInit(INITARGS)
|
||||||
{
|
{
|
||||||
ExtensionEntry *extEntry;
|
AddExtension(XTestExtensionName, 0, 0,
|
||||||
|
ProcXTestDispatch, SProcXTestDispatch,
|
||||||
if (!(extEntry = AddExtension(XTestExtensionName, 0, 0,
|
XTestResetProc, StandardMinorOpcode))
|
||||||
ProcXTestDispatch, SProcXTestDispatch,
|
|
||||||
XTestResetProc, StandardMinorOpcode)))
|
|
||||||
return;
|
|
||||||
|
|
||||||
RegisterRequestName(extEntry->base, X_XTestGetVersion,
|
|
||||||
XTestExtensionName ":GetVersion");
|
|
||||||
RegisterRequestName(extEntry->base, X_XTestCompareCursor,
|
|
||||||
XTestExtensionName ":CompareCursor");
|
|
||||||
RegisterRequestName(extEntry->base, X_XTestFakeInput,
|
|
||||||
XTestExtensionName ":FakeInput");
|
|
||||||
RegisterRequestName(extEntry->base, X_XTestGrabControl,
|
|
||||||
XTestExtensionName ":GrabControl");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
|
Loading…
Reference in New Issue