XACE: Don't need to actually register a protocol extension.

This commit is contained in:
Eamon Walsh 2008-01-25 16:20:46 -05:00 committed by Eamon Walsh
parent 46794d0c96
commit f82329b081
2 changed files with 0 additions and 53 deletions

View File

@ -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++)
{ {

View File

@ -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