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 XkbResizeDeviceButtonActions __libmansuffix__ __xorgversion__ "XKB FUNCTIONS"
25 XkbResizeDeviceButtonActions \- Allocate additional space for button actions in an XkbDeviceInfoRec structure
28 .B Status XkbResizeDeviceButtonActions
29 .BI "(\^XkbDeviceInfoPtr " "device_info" "\^,"
30 .BI "unsigned int " "new_total" "\^);"
36 structure in which to allocate button actions
39 new total number of button actions needed
42 .I XkbResizeDeviceButtonActions
43 reallocates space, if necessary, to make sure there is room for a total of
47 structure. Any new entries allocated are zeroed. If successful,
48 .I XkbResizeDeviceButtonActions
51 is zero, all button actions are deleted,
52 .I device_info->num_btns
54 .I device_info->btn_acts
59 is greater than 255, BadValue is returned. If a memory allocation failure occurs, a BadAlloc is returned.
61 To free an XkbDeviceInfoRec structure, use
65 Information about X Input Extension devices is transferred between a client program and the Xkb
66 extension in an XkbDeviceInfoRec structure:
70 char * name; /\(** name for device */
71 Atom type; /\(** name for class of devices */
72 unsigned short device_spec; /\(** device of interest */
73 Bool has_own_state; /\(** True=>this device has its own state */
74 unsigned short supported; /\(** bits indicating supported capabilities */
75 unsigned short unsupported; /\(** bits indicating unsupported capabilities */
76 unsigned short num_btns; /\(** number of entries in btn_acts */
77 XkbAction * btn_acts; /\(** button actions */
78 unsigned short sz_leds; /\(** total number of entries in LEDs vector */
79 unsigned short num_leds; /\(** number of valid entries in LEDs vector */
80 unsigned short dflt_kbd_fb; /\(** input extension ID of default (core kbd) indicator */
81 unsigned short dflt_led_fb; /\(** input extension ID of default indicator feedback */
82 XkbDeviceLedInfoPtr leds; /\(** LED descriptions */
83 } XkbDeviceInfoRec, *XkbDeviceInfoPtr;
88 Unable to allocate storage
91 An argument is out of range
93 .BR XkbFreeDeviceInfo (__libmansuffix__)