2 .\" Copyright 1999 Oracle and/or its affiliates. All rights reserved.
4 .\" Permission is hereby granted, free of charge, to any person obtaining a
5 .\" copy of this software and associated documentation files (the "Software"),
6 .\" to deal in the Software without restriction, including without limitation
7 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 .\" and/or sell copies of the Software, and to permit persons to whom the
9 .\" Software is furnished to do so, subject to the following conditions:
11 .\" The above copyright notice and this permission notice (including the next
12 .\" paragraph) shall be included in all copies or substantial portions of the
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 .\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 .\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 .\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 .\" DEALINGS IN THE SOFTWARE.
23 .TH XkbGetDeviceLedInfo __libmansuffix__ __xorgversion__ "XKB FUNCTIONS"
25 XkbGetDeviceLedInfo \- Query the indicator names, maps, and state associated
26 with an LED feedback of an input extension device
29 .B Status XkbGetDeviceLedInfo
30 .BI "(\^Display *" "dpy" "\^,"
31 .BI "XkbDeviceInfoPtr " "device_info" "\^,"
32 .BI "unsigned int " "led_class" "\^,"
33 .BI "unsigned int " "led_id" "\^,"
34 .BI "unsigned int " "which" "\^);"
40 connection to X server
43 structure to update with results
46 LED feedback class assigned by input extension
49 LED feedback ID assigned by input extension
52 mask indicating desired information
55 .I XkbGetDeviceLedInfo
56 queries the server for the desired LED information for the feedback specified by
60 for the X input extension device indicated by
61 .I device_spec->device_info
62 and waits for a reply. If successful,
63 .I XkbGetDeviceLedInfo
64 backfills the relevant fields of
68 with the results and returns Success. Valid values for
70 are the inclusive OR of any of XkbXI_IndicatorNamesMask,
71 XkbXI_IndicatorMapsMask, and XkbXI_IndicatorStateMask.
75 that are filled in when this request succeeds are
76 .I name, type, supported,
81 structure corresponding to
85 as indicated by the bits set in
89 vector is allocated if necessary and
99 entry corresponding to
103 are always filled in.
107 contains XkbXI_IndicatorNamesMask, the
113 structure corresponding to
119 contains XkbXI_IndicatorStateMask, the corresponding
121 field is updated, and if
123 contains XkbXI_IndicatorMapsMask, the
129 If a compatible version of Xkb is not available in the server or the Xkb
130 extension has not been properly initialized,
131 .I XkbGetDeviceLedInfo
132 returns BadAccess. If allocation errors occur, a BadAlloc status is returned. If
133 the device has no indicators, a BadMatch error is returned. If
137 have illegal values, a BadValue error is returned. If they have legal values but
138 do not specify a feedback that contains LEDs and is associated with the
139 specified device, a BadMatch error is returned.
143 The Xkb extension has not been properly initialized
146 Unable to allocate storage
149 A compatible version of Xkb was not available in the server or an argument has
150 correct type and range, but is otherwise invalid
153 An argument is out of range