1XkbResizeDeviceButtonActions(3) XKB FUNCTIONS XkbResizeDeviceButtonActions(3)
2
3
4
6 XkbResizeDeviceButtonActions - Allocate additional space for button ac‐
7 tions in an XkbDeviceInfoRec structure
8
10 Status XkbResizeDeviceButtonActions (XkbDeviceInfoPtr device_info, un‐
11 signed int new_total);
12
14 - device_info
15 structure in which to allocate button actions
16
17 - new_total
18 new total number of button actions needed
19
21 XkbResizeDeviceButtonActions reallocates space, if necessary, to make
22 sure there is room for a total of new_total button actions in the de‐
23 vice_info structure. Any new entries allocated are zeroed. If success‐
24 ful, XkbResizeDeviceButtonActions returns Success. If new_total is
25 zero, all button actions are deleted, device_info->num_btns is set to
26 zero, and device_info->btn_acts is set to NULL. If device_info is in‐
27 valid or new_total is greater than 255, BadValue is returned. If a mem‐
28 ory allocation failure occurs, a BadAlloc is returned.
29
30 To free an XkbDeviceInfoRec structure, use XkbFreeDeviceInfo.
31
33 Information about X Input Extension devices is transferred between a
34 client program and the Xkb extension in an XkbDeviceInfoRec structure:
35
36 typedef struct {
37 char * name; /* name for device */
38 Atom type; /* name for class of devices */
39 unsigned short device_spec; /* device of interest */
40 Bool has_own_state; /* True=>this device has its own state */
41 unsigned short supported; /* bits indicating supported capabilities */
42 unsigned short unsupported; /* bits indicating unsupported capabilities */
43 unsigned short num_btns; /* number of entries in btn_acts */
44 XkbAction * btn_acts; /* button actions */
45 unsigned short sz_leds; /* total number of entries in LEDs vector */
46 unsigned short num_leds; /* number of valid entries in LEDs vector */
47 unsigned short dflt_kbd_fb; /* input extension ID of default (core kbd) indicator */
48 unsigned short dflt_led_fb; /* input extension ID of default indicator feedback */
49 XkbDeviceLedInfoPtr leds; /* LED descriptions */
50 } XkbDeviceInfoRec, *XkbDeviceInfoPtr;
51
53 BadAlloc Unable to allocate storage
54
55 BadValue An argument is out of range
56
58 XkbFreeDeviceInfo(3)
59
60
61
62X Version 11 libX11 1.8.1 XkbResizeDeviceButtonActions(3)