/* Copyright 2006 by Peter Hutterer */ #ifdef HAVE_DIX_CONFIG_H #include #endif #include /* for inputstr.h */ #include /* Request macro */ #include "inputstr.h" /* DeviceIntPtr */ #include #include #include "mpxglobals.h" #include "getevbase.h" /*********************************************************************** * * This procedure writes the reply for the MPXGetEventBase function. */ int ProcMPXGetEventBase(register ClientPtr client) { xMPXGetEventBaseReply rep; REQUEST(xMPXGetEventBaseReq); REQUEST_SIZE_MATCH(xMPXGetEventBaseReq); memset(&rep, 0, sizeof(xMPXGetEventBaseReply)); rep.repType = X_Reply; rep.RepType = X_MPXGetEventBase; rep.length = 0; rep.sequenceNumber = client->sequence; rep.eventBase = MPXEventBase; WriteReplyToClient(client, sizeof(xMPXGetEventBaseReply), &rep); return Success; } /*********************************************************************** * * This procedure writes the reply for the MPXGetEventBase function. */ int SProcMPXGetEventBase(register ClientPtr client) { register char n; REQUEST(xMPXGetEventBaseReq); swaps(&stuff->length, n); REQUEST_SIZE_MATCH(xMPXGetEventBaseReq); return (ProcMPXGetEventBase(client)); }