XACE: Don't need to actually register a protocol extension.
This commit is contained in:
parent
46794d0c96
commit
f82329b081
50
Xext/xace.c
50
Xext/xace.c
|
@ -221,51 +221,6 @@ int XaceHook(int hook, ...)
|
||||||
return prv ? *prv : Success;
|
return prv ? *prv : Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
ProcXaceDispatch(ClientPtr client)
|
|
||||||
{
|
|
||||||
REQUEST(xReq);
|
|
||||||
|
|
||||||
switch (stuff->data)
|
|
||||||
{
|
|
||||||
default:
|
|
||||||
return BadRequest;
|
|
||||||
}
|
|
||||||
} /* ProcXaceDispatch */
|
|
||||||
|
|
||||||
static int
|
|
||||||
SProcXaceDispatch(ClientPtr client)
|
|
||||||
{
|
|
||||||
REQUEST(xReq);
|
|
||||||
|
|
||||||
switch (stuff->data)
|
|
||||||
{
|
|
||||||
default:
|
|
||||||
return BadRequest;
|
|
||||||
}
|
|
||||||
} /* SProcXaceDispatch */
|
|
||||||
|
|
||||||
|
|
||||||
/* XaceResetProc
|
|
||||||
*
|
|
||||||
* Arguments:
|
|
||||||
* extEntry is the extension information for the XACE extension.
|
|
||||||
*
|
|
||||||
* Returns: nothing.
|
|
||||||
*
|
|
||||||
* Side Effects:
|
|
||||||
* Performs any cleanup needed by XACE at server shutdown time.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
XaceResetProc(ExtensionEntry *extEntry)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
for (i=0; i<XACE_NUM_HOOKS; i++)
|
|
||||||
DeleteCallbackList(&XaceHooks[i]);
|
|
||||||
} /* XaceResetProc */
|
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
XaceCatchDispatchProc(ClientPtr client)
|
XaceCatchDispatchProc(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -365,11 +320,6 @@ void XaceExtensionInit(INITARGS)
|
||||||
if (!AddCallback(&ClientStateCallback, XaceClientStateCallback, NULL))
|
if (!AddCallback(&ClientStateCallback, XaceClientStateCallback, NULL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
extEntry = AddExtension(XACE_EXTENSION_NAME,
|
|
||||||
XaceNumberEvents, XaceNumberErrors,
|
|
||||||
ProcXaceDispatch, SProcXaceDispatch,
|
|
||||||
XaceResetProc, StandardMinorOpcode);
|
|
||||||
|
|
||||||
/* initialize dispatching intercept functions */
|
/* initialize dispatching intercept functions */
|
||||||
for (i = 0; i < 128; i++)
|
for (i = 0; i < 128; i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,9 +29,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include "pixmap.h" /* for DrawablePtr */
|
#include "pixmap.h" /* for DrawablePtr */
|
||||||
#include "regionstr.h" /* for RegionPtr */
|
#include "regionstr.h" /* for RegionPtr */
|
||||||
|
|
||||||
#define XaceNumberEvents 0
|
|
||||||
#define XaceNumberErrors 0
|
|
||||||
|
|
||||||
/* Default window background */
|
/* Default window background */
|
||||||
#define XaceBackgroundNoneState None
|
#define XaceBackgroundNoneState None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue