registry: Register MIT-MISC extension protocol names.
This commit is contained in:
parent
32f6171862
commit
7e182a5d89
|
@ -38,14 +38,11 @@ in this Software without prior written authorization from The Open Group.
|
|||
#include "os.h"
|
||||
#include "dixstruct.h"
|
||||
#include "extnsionst.h"
|
||||
#include "registry.h"
|
||||
#define _MITMISC_SERVER_
|
||||
#include <X11/extensions/mitmiscstr.h>
|
||||
#include "modinit.h"
|
||||
|
||||
#if 0
|
||||
static unsigned char MITReqCode;
|
||||
#endif
|
||||
|
||||
static void MITResetProc(
|
||||
ExtensionEntry * /* extEntry */
|
||||
);
|
||||
|
@ -60,18 +57,17 @@ static DISPATCH_PROC(SProcMITSetBugMode);
|
|||
void
|
||||
MITMiscExtensionInit(INITARGS)
|
||||
{
|
||||
#if 0
|
||||
ExtensionEntry *extEntry;
|
||||
|
||||
if ((extEntry = AddExtension(MITMISCNAME, 0, 0,
|
||||
ProcMITDispatch, SProcMITDispatch,
|
||||
MITResetProc, StandardMinorOpcode)) != 0)
|
||||
MITReqCode = (unsigned char)extEntry->base;
|
||||
#else
|
||||
(void) AddExtension(MITMISCNAME, 0, 0,
|
||||
ProcMITDispatch, SProcMITDispatch,
|
||||
MITResetProc, StandardMinorOpcode);
|
||||
#endif
|
||||
if (!(extEntry = AddExtension(MITMISCNAME, 0, 0,
|
||||
ProcMITDispatch, SProcMITDispatch,
|
||||
MITResetProc, StandardMinorOpcode)))
|
||||
return;
|
||||
|
||||
RegisterRequestName(extEntry->base, X_MITSetBugMode,
|
||||
MITMISCNAME ":SetBugMode");
|
||||
RegisterRequestName(extEntry->base, X_MITGetBugMode,
|
||||
MITMISCNAME ":GetBugMode");
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user