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