1xcb_xkb_get_device_info(3) XCB Requests xcb_xkb_get_device_info(3)
2
3
4
6 xcb_xkb_get_device_info -
7
9 #include <xcb/xkb.h>
10
11 Request function
12 xcb_xkb_get_device_info_cookie_t
13 xcb_xkb_get_device_info(xcb_connection_t *conn,
14 xcb_xkb_device_spec_t deviceSpec, uint16_t wanted,
15 uint8_t allButtons, uint8_t firstButton, uint8_t nButtons,
16 xcb_xkb_led_class_spec_t ledClass, xcb_xkb_id_spec_t ledID);
17
18 Reply datastructure
19 typedef struct xcb_xkb_get_device_info_reply_t {
20 uint8_t response_type;
21 uint8_t deviceID;
22 uint16_t sequence;
23 uint32_t length;
24 uint16_t present;
25 uint16_t supported;
26 uint16_t unsupported;
27 uint16_t nDeviceLedFBs;
28 uint8_t firstBtnWanted;
29 uint8_t nBtnsWanted;
30 uint8_t firstBtnRtrn;
31 uint8_t nBtnsRtrn;
32 uint8_t totalBtns;
33 uint8_t hasOwnState;
34 uint16_t dfltKbdFB;
35 uint16_t dfltLedFB;
36 uint8_t pad0[2];
37 xcb_atom_t devType;
38 uint16_t nameLen;
39 } xcb_xkb_get_device_info_reply_t;
40
41 Reply function
42 xcb_xkb_get_device_info_reply_t
43 *xcb_xkb_get_device_info_reply(xcb_connection_t *conn,
44 xcb_xkb_get_device_info_cookie_t cookie,
45 xcb_generic_error_t **e);
46
47 Reply accessors
48 xcb_xkb_string8_t *xcb_xkb_get_device_info_name(const
49 xcb_xkb_get_device_info_request_t *reply);
50
51 int xcb_xkb_get_device_info_name_length(const
52 xcb_xkb_get_device_info_reply_t *reply);
53
54 xcb_generic_iterator_t xcb_xkb_get_device_info_name_end(const
55 xcb_xkb_get_device_info_reply_t *reply); uint8_t
56 *xcb_xkb_get_device_info_pad_1 (const
57 xcb_xkb_get_device_info_request_t *reply)
58
59 xcb_xkb_action_t *xcb_xkb_get_device_info_btn_actions(const
60 xcb_xkb_get_device_info_request_t *reply);
61
62 int xcb_xkb_get_device_info_btn_actions_length(const
63 xcb_xkb_get_device_info_reply_t *reply);
64
65 xcb_xkb_action_iterator_t
66 xcb_xkb_get_device_info_btn_actions_iterator(const
67 xcb_xkb_get_device_info_reply_t *reply);
68
69 int xcb_xkb_get_device_info_leds_length(const
70 xcb_xkb_get_device_info_reply_t *reply);
71
72 xcb_xkb_device_led_info_iterator_t
73 xcb_xkb_get_device_info_leds_iterator(const
74 xcb_xkb_get_device_info_reply_t *reply);
75
77 conn The XCB connection to X11.
78
79 deviceSpec
80 TODO: NOT YET DOCUMENTED.
81
82 wanted TODO: NOT YET DOCUMENTED.
83
84 allButtons
85 TODO: NOT YET DOCUMENTED.
86
87 firstButton
88 TODO: NOT YET DOCUMENTED.
89
90 nButtons TODO: NOT YET DOCUMENTED.
91
92 ledClass TODO: NOT YET DOCUMENTED.
93
94 ledID TODO: NOT YET DOCUMENTED.
95
97 response_type
98 The type of this reply, in this case XCB_XKB_GET_DEVICE_INFO.
99 This field is also present in the xcb_generic_reply_t and can
100 be used to tell replies apart from each other.
101
102 sequence The sequence number of the last request processed by the X11
103 server.
104
105 length The length of the reply, in words (a word is 4 bytes).
106
107 deviceID TODO: NOT YET DOCUMENTED.
108
109 present TODO: NOT YET DOCUMENTED.
110
111 supported TODO: NOT YET DOCUMENTED.
112
113 unsupported
114 TODO: NOT YET DOCUMENTED.
115
116 nDeviceLedFBs
117 TODO: NOT YET DOCUMENTED.
118
119 firstBtnWanted
120 TODO: NOT YET DOCUMENTED.
121
122 nBtnsWanted
123 TODO: NOT YET DOCUMENTED.
124
125 firstBtnRtrn
126 TODO: NOT YET DOCUMENTED.
127
128 nBtnsRtrn TODO: NOT YET DOCUMENTED.
129
130 totalBtns TODO: NOT YET DOCUMENTED.
131
132 hasOwnState
133 TODO: NOT YET DOCUMENTED.
134
135 dfltKbdFB TODO: NOT YET DOCUMENTED.
136
137 dfltLedFB TODO: NOT YET DOCUMENTED.
138
139 devType TODO: NOT YET DOCUMENTED.
140
141 nameLen TODO: NOT YET DOCUMENTED.
142
145 Returns an xcb_xkb_get_device_info_cookie_t. Errors have to be handled
146 when calling the reply function xcb_xkb_get_device_info_reply.
147
148 If you want to handle errors in the event loop instead, use
149 xcb_xkb_get_device_info_unchecked. See xcb-requests(3) for details.
150
152 This request does never generate any errors.
153
156 Generated from xkb.xml. Contact xcb@lists.freedesktop.org for correcā
157 tions and improvements.
158
159
160
161X Version 11 libxcb 1.12 xcb_xkb_get_device_info(3)