a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync/***********************************************************
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncCopyright 1987, 1998 The Open Group
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncPermission to use, copy, modify, distribute, and sell this software and its
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncdocumentation for any purpose is hereby granted without fee, provided that
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncthe above copyright notice appear in all copies and that both that
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsynccopyright notice and this permission notice appear in supporting
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncdocumentation.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncThe above copyright notice and this permission notice shall be included in
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncall copies or substantial portions of the Software.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncExcept as contained in this notice, the name of The Open Group shall not be
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncused in advertising or otherwise to promote the sale, use or other dealings
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncin this Software without prior written authorization from The Open Group.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync All Rights Reserved
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncPermission to use, copy, modify, and distribute this software and its
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncdocumentation for any purpose and without fee is hereby granted,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncprovided that the above copyright notice appear in all copies and that
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncboth that copyright notice and this permission notice appear in
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncsupporting documentation, and that the name of Digital not be
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncused in advertising or publicity pertaining to distribution of the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncsoftware without specific, written prior permission.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync******************************************************************/
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0]))
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync if (((sizeof(req) + ((uint64_t) extra)) >> 2) > client->req_len ) \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync ((((uint64_t) sizeof(req) + (n) + 3) >> 2) != (uint64_t) client->req_len)) \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#define VALIDATE_DRAWABLE_AND_GC(drawID, pDraw, mode)\
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int tmprc = dixLookupDrawable(&(pDraw), drawID, client, M_ANY, mode);\
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync tmprc = dixLookupGC(&(pGC), stuff->gc, client, DixUseAccess);\
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync if ((pGC->depth != pDraw->depth) || (pGC->pScreen != pDraw->pScreen))\
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#define WriteReplyToClient(pClient, size, pReply) { \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync (*ReplySwapVector[((xReq *)(pClient)->requestBuffer)->reqType]) \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync else WriteToClient(pClient, (int)(size), (pReply)); }
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#define WriteSwappedDataToClient(pClient, size, pbuf) \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync (*(pClient)->pSwapReplyFunc)(pClient, (int)(size), pbuf); \
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsynctypedef struct _Client *ClientPtr; /* also in misc.h */
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT void SetInputCheck(HWEventQueuePtr /*c0 */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT void CloseDownClient(ClientPtr /*client */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT ClientPtr NextAvailableClient(void *ospriv);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT void SendErrorToClient(ClientPtr /*client */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync unsigned int /*majorCode */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync unsigned int /*minorCode */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /*errorCode */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT void MarkClientException(ClientPtr /*client */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT int CompareISOLatin1Lowered(const unsigned char * /*a */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync const unsigned char * /*b */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT int dixLookupWindow(WindowPtr *result,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT int dixLookupDrawable(DrawablePtr *result,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT int dixLookupFontable(FontPtr *result,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT int dixLookupClient(ClientPtr *result,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT int AlterSaveSetForClient(ClientPtr /*client */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync unsigned /*mode */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT void DeleteWindowFromAnySaveSet(WindowPtr /*pWin */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsynctypedef void (*WakeupHandlerProcPtr) (void *blockData,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT Bool RegisterBlockAndWakeupHandlers(BlockHandlerProcPtr blockHandler,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT void RemoveBlockAndWakeupHandlers(BlockHandlerProcPtr blockHandler,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT void InitBlockAndWakeupHandlers(void);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT void ProcessWorkQueueZombies(void);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT Bool QueueWorkProc(Bool (*function)(ClientPtr clientUnused,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsynctypedef Bool (*ClientSleepProcPtr) (ClientPtr client,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT Bool ClientSignal(ClientPtr /*client */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#endif /* ___CLIENTSIGNAL_DEFINED___ */
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT void ClientWakeup(ClientPtr /*client */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT Bool ClientIsAsleep(ClientPtr /*client */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT void SendGraphicsExpose(ClientPtr /*client */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /*major */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /*minor */);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT Atom MakeAtom(const char * /*string */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync unsigned /*len */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT const char *NameForAtom(Atom /*atom */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /* event */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int * /* px */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int * /* py */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncLastEventTimeToggleResetFlag(int deviceid, Bool state);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /* newState */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /* count */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncDeliverOneGrabbedEvent(InternalEvent * /* event */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncRecalculateDeliverableEvents(WindowPtr /* pWin */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /* mode */ );
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync unsigned /* this_mode */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync unsigned /* other_mode */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync unsigned /* ownerEvents */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /* grabtype */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /*count */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /*count */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int /*count */ ,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncReinitializeRootWindow(WindowPtr win, int xoff, int yoff);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * ServerGrabCallback stuff
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT CallbackListPtr ServerGrabCallback;
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsynctypedef struct {
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * EventCallback stuff
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsynctypedef struct {
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * DeviceEventCallback stuff
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern _X_EXPORT CallbackListPtr DeviceEventCallback;
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsynctypedef struct {
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncCopyKeyClass(DeviceIntPtr device, DeviceIntPtr master);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#endif /* DIX_H */