b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/***********************************************************
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCopyright 1987, 1998 The Open Group
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncPermission to use, copy, modify, distribute, and sell this software and its
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncdocumentation for any purpose is hereby granted without fee, provided that
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncthe above copyright notice appear in all copies and that both that
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynccopyright notice and this permission notice appear in supporting
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncdocumentation.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncThe above copyright notice and this permission notice shall be included in
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncall copies or substantial portions of the Software.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncExcept as contained in this notice, the name of The Open Group shall not be
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncused in advertising or otherwise to promote the sale, use or other dealings
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncin this Software without prior written authorization from The Open Group.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync All Rights Reserved
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncPermission to use, copy, modify, and distribute this software and its
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncdocumentation for any purpose and without fee is hereby granted,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncprovided that the above copyright notice appear in all copies and that
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncboth that copyright notice and this permission notice appear in
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncsupporting documentation, and that the name of Digital not be
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncused in advertising or publicity pertaining to distribution of the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncsoftware without specific, written prior permission.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync******************************************************************/
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync (((sizeof(req) + (n) + 3) >> 2) != client->req_len)) \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define VALIDATE_DRAWABLE_AND_GC(drawID, pDraw, mode)\
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int rc = dixLookupDrawable(&(pDraw), drawID, client, M_ANY, mode);\
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync rc = dixLookupGC(&(pGC), stuff->gc, client, DixUseAccess);\
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync if ((pGC->depth != pDraw->depth) || (pGC->pScreen != pDraw->pScreen))\
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define WriteReplyToClient(pClient, size, pReply) { \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync (*ReplySwapVector[((xReq *)(pClient)->requestBuffer)->reqType]) \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync else (void) WriteToClient(pClient, (int)(size), (char *)(pReply)); }
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define WriteSwappedDataToClient(pClient, size, pbuf) \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync (*(pClient)->pSwapReplyFunc)(pClient, (int)(size), pbuf); \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync else (void) WriteToClient (pClient, (int)(size), (char *)(pbuf));
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _Client *ClientPtr; /* also in misc.h */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int /*majorCode*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int /*minorCode*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*errorCode*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned char * /*a*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned char * /*b*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned /*mode*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*result*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /* result */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT Bool RegisterBlockAndWakeupHandlers(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT void InitBlockAndWakeupHandlers(void);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT void ProcessWorkQueueZombies(void);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#endif /* ___CLIENTSIGNAL_DEFINED___ */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync const char * /*string*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned /*len*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT void SetVendorRelease(int release);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT void SetVendorString(char *string);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /* deviceid */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /* event */);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int* /* px */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int* /* py */);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT WindowPtr GetCurrentRootWindow(DeviceIntPtr pDev);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT WindowPtr GetSpriteWindow(DeviceIntPtr pDev);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT void NoticeEventTime(InternalEvent *ev);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /* newState */);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /* count */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /* checkFirst */);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /* mode */);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned /* this_mode */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned /* other_mode */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned /* ownerEvents */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /* grabtype */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern void InitEvents(void);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern void CloseDownEvents(void);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*count*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*count*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*count*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT void ReinitializeRootWindow(WindowPtr win, int xoff, int yoff);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * callback manager stuff
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _CallbackList *CallbackListPtr; /* also in misc.h */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * ServerGrabCallback stuff
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT CallbackListPtr ServerGrabCallback;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CLIENT_PERVIOUS, CLIENT_IMPERVIOUS } ServerGrabState;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * EventCallback stuff
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * DeviceEventCallback stuff
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT CallbackListPtr DeviceEventCallback;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern Bool _X_EXPORT IsPointerDevice( DeviceIntPtr dev);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern Bool _X_EXPORT IsKeyboardDevice(DeviceIntPtr dev);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_HIDDEN void CopyKeyClass(DeviceIntPtr device, DeviceIntPtr master);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_HIDDEN int CorePointerProc(DeviceIntPtr dev, int what);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_HIDDEN int CoreKeyboardProc(DeviceIntPtr dev, int what);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * These are deprecated compatibility functions and will be removed soon!
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Please use the noted replacements instead.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* replaced by dixLookupWindow */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* replaced by dixLookupWindow */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* replaced by dixLookupDrawable */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* replaced by dixLookupDrawable */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* replaced by dixLookupClient */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#endif /* DIX_H */