a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync/***********************************************************
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCopyright 1987, 1998 The Open Group
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncPermission to use, copy, modify, distribute, and sell this software and its
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncdocumentation for any purpose is hereby granted without fee, provided that
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncthe above copyright notice appear in all copies and that both that
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynccopyright notice and this permission notice appear in supporting
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncdocumentation.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncThe above copyright notice and this permission notice shall be included in
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncall copies or substantial portions of the Software.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncExcept as contained in this notice, the name of The Open Group shall not be
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncused in advertising or otherwise to promote the sale, use or other dealings
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncin this Software without prior written authorization from The Open Group.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync All Rights Reserved
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncPermission to use, copy, modify, and distribute this software and its
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncdocumentation for any purpose and without fee is hereby granted,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncprovided that the above copyright notice appear in all copies and that
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncboth that copyright notice and this permission notice appear in
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncsupporting documentation, and that the name of Digital not be
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncused in advertising or publicity pertaining to distribution of the
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncsoftware without specific, written prior permission.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync******************************************************************/
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0]))
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync (((sizeof(req) + (n) + 3) >> 2) != client->req_len)) \
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define VALIDATE_DRAWABLE_AND_GC(drawID, pDraw, mode)\
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int rc = dixLookupDrawable(&(pDraw), drawID, client, M_ANY, mode);\
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync rc = dixLookupGC(&(pGC), stuff->gc, client, DixUseAccess);\
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync if ((pGC->depth != pDraw->depth) || (pGC->pScreen != pDraw->pScreen))\
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define WriteReplyToClient(pClient, size, pReply) { \
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync (*ReplySwapVector[((xReq *)(pClient)->requestBuffer)->reqType]) \
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync else WriteToClient(pClient, (int)(size), (pReply)); }
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define WriteSwappedDataToClient(pClient, size, pbuf) \
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync (*(pClient)->pSwapReplyFunc)(pClient, (int)(size), pbuf); \
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct _Client *ClientPtr; /* also in misc.h */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void SetInputCheck(HWEventQueuePtr /*c0 */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void CloseDownClient(ClientPtr /*client */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT int dixDestroyPixmap(pointer /*value */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void InitClient(ClientPtr /*client */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /*i */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT ClientPtr NextAvailableClient(pointer /*ospriv */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void SendErrorToClient(ClientPtr /*client */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned int /*majorCode */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned int /*minorCode */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /*errorCode */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void MarkClientException(ClientPtr /*client */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT int CompareISOLatin1Lowered(const unsigned char * /*a */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync const unsigned char * /*b */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT int dixLookupWindow(WindowPtr *result,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT int dixLookupDrawable(DrawablePtr *result,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT int dixLookupFontable(FontPtr *result,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT int dixLookupClient(ClientPtr *result,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT int AlterSaveSetForClient(ClientPtr /*client */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned /*mode */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void DeleteWindowFromAnySaveSet(WindowPtr /*pWin */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void BlockHandler(pointer /*pTimeout */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void WakeupHandler(int /*result */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef void (*WakeupHandlerProcPtr) (pointer /* blockData */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* result */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT Bool RegisterBlockAndWakeupHandlers(BlockHandlerProcPtr
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync /*blockHandler */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync /*wakeupHandler */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void RemoveBlockAndWakeupHandlers(BlockHandlerProcPtr
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync /*blockHandler */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync /*wakeupHandler */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void InitBlockAndWakeupHandlers(void);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void ProcessWorkQueueZombies(void);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT Bool QueueWorkProc(Bool (* /*function */ )(
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync /*clientUnused */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync /*closure */ ),
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef Bool (*ClientSleepProcPtr) (ClientPtr /*client */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT Bool ClientSleep(ClientPtr /*client */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT Bool ClientSignal(ClientPtr /*client */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#endif /* ___CLIENTSIGNAL_DEFINED___ */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void ClientWakeup(ClientPtr /*client */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT Bool ClientIsAsleep(ClientPtr /*client */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT Atom MakeAtom(const char * /*string */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned /*len */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT const char *NameForAtom(Atom /*atom */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* event */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int * /* px */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int * /* py */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* newState */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncDeliverOneGrabbedEvent(InternalEvent * /* event */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncRecalculateDeliverableEvents(WindowPtr /* pWin */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* mode */ );
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned /* this_mode */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned /* other_mode */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync unsigned /* ownerEvents */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /* grabtype */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /*count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /*count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int /*count */ ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncReinitializeRootWindow(WindowPtr win, int xoff, int yoff);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * ServerGrabCallback stuff
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT CallbackListPtr ServerGrabCallback;
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * EventCallback stuff
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * DeviceEventCallback stuff
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT CallbackListPtr DeviceEventCallback;
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct {
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncCopyKeyClass(DeviceIntPtr device, DeviceIntPtr master);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#endif /* DIX_H */