1xcb_input_query_device_state(3)  XCB Requests  xcb_input_query_device_state(3)
2
3
4

NAME

6       xcb_input_query_device_state -
7

SYNOPSIS

9       #include <xcb/xinput.h>
10
11   Request function
12       xcb_input_query_device_state_cookie_t
13              xcb_input_query_device_state(xcb_connection_t *conn,
14              uint8_t device_id);
15
16   Reply datastructure
17       typedef struct xcb_input_query_device_state_reply_t {
18           uint8_t  response_type;
19           uint8_t  xi_reply_type;
20           uint16_t sequence;
21           uint32_t length;
22           uint8_t  num_classes;
23           uint8_t  pad0[23];
24       } xcb_input_query_device_state_reply_t;
25
26   Reply function
27       xcb_input_query_device_state_reply_t
28              *xcb_input_query_device_state_reply(xcb_connection_t *conn,
29              xcb_input_query_device_state_cookie_t cookie,
30              xcb_generic_error_t **e);
31
32   Reply accessors
33       int xcb_input_query_device_state_classes_length(const
34              xcb_input_query_device_state_reply_t *reply);
35
36       xcb_input_input_state_iterator_t
37              xcb_input_query_device_state_classes_iterator(const
38              xcb_input_query_device_state_reply_t *reply);
39

REQUEST ARGUMENTS

41       conn      The XCB connection to X11.
42
43       device_id TODO: NOT YET DOCUMENTED.
44

REPLY FIELDS

46       response_type
47                 The type of this reply, in this case XCB_INPUT_QUERY_DE‐
48                 VICE_STATE. This field is also present in the xcb_generic_re‐
49                 ply_t and can be used to tell replies apart from each other.
50
51       sequence  The sequence number of the last request processed by the X11
52                 server.
53
54       length    The length of the reply, in words (a word is 4 bytes).
55
56       xi_reply_type
57                 TODO: NOT YET DOCUMENTED.
58
59       num_classes
60                 TODO: NOT YET DOCUMENTED.
61

DESCRIPTION

RETURN VALUE

64       Returns an xcb_input_query_device_state_cookie_t. Errors have to be
65       handled when calling the reply function xcb_input_query_de‐
66       vice_state_reply.
67
68       If you want to handle errors in the event loop instead, use xcb_in‐
69       put_query_device_state_unchecked. See xcb-requests(3) for details.
70

ERRORS

72       This request does never generate any errors.
73

SEE ALSO

AUTHOR

76       Generated from xinput.xml. Contact xcb@lists.freedesktop.org for cor‐
77       rections and improvements.
78
79
80
81X Version 11                      libxcb 1.13  xcb_input_query_device_state(3)
Impressum