1XkbAllocDeviceInfo(3)            XKB FUNCTIONS           XkbAllocDeviceInfo(3)
2
3
4

NAME

6       XkbAllocDeviceInfo - Obtain an XkbDeviceInfoRec structure
7

SYNOPSIS

9       XkbDeviceInfoPtr XkbAllocDeviceInfo (unsigned int device_spec, unsigned
10              int n_buttons, unsigned int sz_leds);
11

ARGUMENTS

13       - device_spec
14              device ID with which structure will be used
15
16       - n_buttons
17              number of button actions to allocate space for
18
19       - sz_leds
20              number of LED feedbacks to allocate space for
21

DESCRIPTION

23       XkbAllocDeviceInfo allocates space for  an  XkbDeviceInfoRec  structure
24       and  initializes  that structure's device_spec field with the device ID
25       specified by device_spec.  If n_buttons is  nonzero,  n_buttons  XkbAc‐
26       tions are linked into the XkbDeviceInfoRec structure and initialized to
27       zero. If sz_leds is nonzero, sz_leds XkbDeviceLedInfoRec structures are
28       also  allocated  and linked into the XkbDeviceInfoRec structure. If you
29       request XkbDeviceLedInfoRec structures be allocated using this request,
30       you must initialize them explicitly.
31
32       To obtain an XkbDeviceLedInfoRec structure, use XkbAllocDeviceLedInfo.
33

STRUCTURES

35       Information  about  X  Input Extension devices is transferred between a
36       client program and the Xkb extension in an XkbDeviceInfoRec structure:
37
38           typedef struct {
39               char *               name;          /∗ name for device */
40               Atom                 type;          /∗ name for class of devices */
41               unsigned short       device_spec;   /∗ device of interest */
42               Bool                 has_own_state; /∗ True=>this device has its own state */
43               unsigned short       supported;     /∗ bits indicating supported capabilities */
44               unsigned short       unsupported;   /∗ bits indicating unsupported capabilities */
45               unsigned short       num_btns;      /∗ number of entries in btn_acts */
46               XkbAction *          btn_acts;      /∗ button actions */
47               unsigned short       sz_leds;       /∗ total number of entries in LEDs vector */
48               unsigned short       num_leds;      /∗ number of valid entries in LEDs vector */
49               unsigned short       dflt_kbd_fb;   /∗ input extension ID of default (core kbd) indicator */
50               unsigned short       dflt_led_fb;   /∗ input extension ID of default indicator feedback */
51               XkbDeviceLedInfoPtr  leds;          /∗ LED descriptions */
52           } XkbDeviceInfoRec, *XkbDeviceInfoPtr;
53
54
55           typedef struct {
56               unsigned short      led_class;        /∗ class for this LED device*/
57               unsigned short      led_id;           /∗ ID for this LED device */
58               unsigned int        phys_indicators;  /∗ bits for which LEDs physically present */
59               unsigned int        maps_present;     /∗ bits for which LEDs have maps in maps */
60               unsigned int        names_present;    /∗ bits for which LEDs are in names */
61               unsigned int        state;            /∗ 1 bit => corresponding LED is on */
62               Atom                names[XkbNumIndicators];   /∗ names for LEDs */
63               XkbIndicatorMapRec  maps;             /∗ indicator maps for each LED */
64           } XkbDeviceLedInfoRec, *XkbDeviceLedInfoPtr;
65

SEE ALSO

67       XkbAllocDeviceLedInfo(3)
68
69
70
71X Version 11                     libX11 1.6.9            XkbAllocDeviceInfo(3)
Impressum