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

NAME

6       xcb_input_open_device -
7

SYNOPSIS

9       #include <xcb/xinput.h>
10
11   Request function
12       xcb_input_open_device_cookie_t
13              xcb_input_open_device(xcb_connection_t *conn,
14              uint8_t device_id);
15
16   Reply datastructure
17       typedef struct xcb_input_open_device_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_open_device_reply_t;
25
26   Reply function
27       xcb_input_open_device_reply_t
28              *xcb_input_open_device_reply(xcb_connection_t *conn,
29              xcb_input_open_device_cookie_t cookie, xcb_generic_error_t **e);
30
31   Reply accessors
32       xcb_input_input_class_info_t *xcb_input_open_device_class_info(const
33              xcb_input_open_device_request_t *reply);
34
35       int xcb_input_open_device_class_info_length(const
36              xcb_input_open_device_reply_t *reply);
37
38       xcb_input_input_class_info_iterator_t
39              xcb_input_open_device_class_info_iterator(const
40              xcb_input_open_device_reply_t *reply); uint8_t
41              *xcb_input_open_device_pad_1 (const
42              xcb_input_open_device_request_t *reply)
43

REQUEST ARGUMENTS

45       conn      The XCB connection to X11.
46
47       device_id TODO: NOT YET DOCUMENTED.
48

REPLY FIELDS

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

DESCRIPTION

RETURN VALUE

68       Returns an xcb_input_open_device_cookie_t. Errors have to be handled
69       when calling the reply function xcb_input_open_device_reply.
70
71       If you want to handle errors in the event loop instead, use xcb_in‐
72       put_open_device_unchecked. See xcb-requests(3) for details.
73

ERRORS

75       This request does never generate any errors.
76

SEE ALSO

AUTHOR

79       Generated from xinput.xml. Contact xcb@lists.freedesktop.org for cor‐
80       rections and improvements.
81
82
83
84X Version 11                      libxcb 1.13         xcb_input_open_device(3)
Impressum