AccessXcomm.c revision 551
551N/A* Copyright 2004 Sun Microsystems, Inc. All rights reserved. 551N/A* Use subject to license terms. 551N/A* Permission is hereby granted, free of charge, to any person obtaining a 551N/A* copy of this software and associated documentation files (the 551N/A* "Software"), to deal in the Software without restriction, including 551N/A* without limitation the rights to use, copy, modify, merge, publish, 551N/A* distribute, and/or sell copies of the Software, and to permit persons 551N/A* to whom the Software is furnished to do so, provided that the above 551N/A* copyright notice(s) and this permission notice appear in all copies of 551N/A* the Software and that both the above copyright notice(s) and this 551N/A* permission notice appear in supporting documentation. 551N/A* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 551N/A* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 551N/A* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 551N/A* OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 551N/A* HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 551N/A* INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 551N/A* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 551N/A* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 551N/A* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 551N/A* Except as contained in this notice, the name of a copyright holder 551N/A* shall not be used in advertising or otherwise to promote the sale, use 551N/A* or other dealings in this Software without prior written authorization 551N/A* of the copyright holder. 551N/A/************************************************************************/ 551N/A/* Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1993 */ 551N/A/* by Digital Equipment Corp., Maynard, MA */ 551N/A/* Permission to use, copy, modify, and distribute this software */ 551N/A/* and its documentation for any purpose and without fee is hereby */ 551N/A/* granted, provided that the above copyright notice appear in all */ 551N/A/* copies and that both that copyright notice and this permission */ 551N/A/* notice appear in supporting documentation, and that the name of */ 551N/A/* Digital not be used in advertising or publicity pertaining to */ 551N/A/* distribution of the software without specific, written prior */ 551N/A/* DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, */ 551N/A/* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND */ 551N/A/* FITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, */ 551N/A/* INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER */ 551N/A/* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN */ 551N/A/* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */ 551N/A/* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE */ 551N/A/************************************************************************/ 551N/A/************************************************************************/ 551N/A/* This module provides the client library functions necessary for */ 551N/A/* an AccessX client to communicate with the AccessX server */ 551N/A/* 11-Jun-1993 WDW & MEN */ 551N/A/* Develop sample implementation. */ 551N/A/************************************************************************/ 551N/A/************************************************************************/ 551N/A/* XAccessXWireToEvent - takes a raw event off the wire an converts it */ 551N/A/* into an Xlib event structure. */ 551N/A/************************************************************************/ 551N/A}
/* XAccessXWireToEvent */ 551N/A/************************************************************************/ 551N/A/* XAccessXQueryExtension */ 551N/A/* This routine returns TRUE if the AccessX extension is */ 551N/A/* available on the given display. */ 551N/A/************************************************************************/ 551N/A}
/* XAccessXQueryExtension */ 551N/A/************************************************************************/ 551N/A/* XAccessXQueryVersion */ 551N/A/* This routine sends an X_AccessXQueryVersion request to the */ 551N/A/* AccessX extension on the server, and then waits for a reply. */ 551N/A/************************************************************************/ 551N/A /* Send the request and wait for the reply. 551N/A}
/* XAccessXQueryVersion */ 551N/A/************************************************************************/ 551N/A/* XAccessXSelectInput */ 551N/A/* This routine sends an X_AccessXSelectInput request to the */ 551N/A/* AccessX extension on the server. */ 551N/A/************************************************************************/ 551N/A}
/* XAccessXSelectInput */ 551N/A/************************************************************************/ 551N/A/* XAccessXQueryState */ 551N/A/* This routine sends an X_AccessXQueryState request to the */ 551N/A/* AccessX extension on the server, and then waits for a reply. */ 551N/A/************************************************************************/ 551N/A /* Send the request and wait for the reply. 551N/A}
/* XAccessXQueryState */ 551N/A/************************************************************************/ 551N/A/* This routine sends an X_AccessXConfigure request to the */ 551N/A/* AccessX extension on the server. */ 551N/A/************************************************************************/ 551N/A}
/* XAccessXConfigure */ 551N/A/************************************************************************/ 551N/A/* XAccessXGetMouseKeys */ 551N/A/* This routine sends an X_AccessXGetMouseKeys request to the */ 551N/A/* AccessX extension on the server, and then waits for a reply. */ 551N/A/************************************************************************/ 551N/A /* Send the request and wait for the reply. 551N/A return;
/* NOthing for now */ 551N/A}
/* XAccessXGetMouseKeys */ 551N/A/************************************************************************/ 551N/A/* XAccessXSetMouseKey */ 551N/A/* This routine sends an X_AccessXSetMouseKey request to the */ 551N/A/* AccessX extension in the server. */ 551N/A/************************************************************************/ 551N/A return;
/* Nothing for now */ 551N/A}
/* XAccessXSetMouseKey */ 551N/A/************************************************************************/ 551N/A/* Initialize the connection with the AccessX server extension. */ 551N/A/************************************************************************/ 551N/A /* Find the AccessX extension 551N/A/************************************************************************/ 551N/A/************************************************************************/ 551N/A /* The AccessX extension will spit out only one event type, 551N/A * and this the type accessXEventBase. The intrinsics do not 551N/A * have a graceful way to allow extensions to add events to 551N/A * XtAppMainLoop, so it is necessary to write our own which 551N/A * checks for accessXEventBase. 551N/A}
/* XAccessXAppMainLoop */