Copyright (c) 1993, 1994 X Consortium

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of the X Consortium shall
not be used in advertising or otherwise to promote the sale, use or
other dealing in this Software without prior written authorization
from the X Consortium.

XtGetKeysymTable __libmansuffix__ __xorgversion__ "XT FUNCTIONS"
NAME
XtGetKeysymTable, XtKeysymToKeycodeList - query keysyms and keycodes
SYNTAX
#include <X11/Intrinsic.h>

KeySym* XtGetKeysymTable(Display* display, KeyCode* min_keycode_return, int *keysyms_per_keycode_return);

void XtKeysymToKeycodeList(Display* display, KeySym keysym, KeyCode** keycodes_return, Cardinal* keycount_return);

ARGUMENTS
display 1i
Specifies the display whose table is required.

min_keycode_return 1i
Returns the minimum KeyCode valid for the display.

keysyms_per_keycode_return
Returns the number of KeySyms stored for each KeyCode.

keysym 1i
Specifies the KeySym for which to search.

keycodes_return 1i
Returns a list of KeyCodes that have keysym associated with them, or NULL if keycount_return is 0.

keycount_return 1i
Returns the number of KeyCodes in the keycode list.
DESCRIPTION
XtGetKeysymTable returns a pointer to the Intrinsics' copy of the server's KeyCode-to-KeySym table. This table must not be modified.

The XtKeysymToKeycodeList procedure returns all the KeyCodes that have keysym in their entry for the keyboard mapping table associated with display. The caller should free the storage pointed to by keycodes_return using XtFree when it is no longer useful.

"SEE ALSO"

\*(xT

\*(xL