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

NAME

6       xcb_dri2_connect -
7

SYNOPSIS

9       #include <xcb/dri2.h>
10
11   Request function
12       xcb_dri2_connect_cookie_t xcb_dri2_connect(xcb_connection_t *conn,
13              xcb_window_t window, uint32_t driver_type);
14
15   Reply datastructure
16       typedef struct xcb_dri2_connect_reply_t {
17           uint8_t  response_type;
18           uint8_t  pad0;
19           uint16_t sequence;
20           uint32_t length;
21           uint32_t driver_name_length;
22           uint32_t device_name_length;
23           uint8_t  pad1[16];
24       } xcb_dri2_connect_reply_t;
25
26   Reply function
27       xcb_dri2_connect_reply_t
28              *xcb_dri2_connect_reply(xcb_connection_t *conn,
29              xcb_dri2_connect_cookie_t cookie, xcb_generic_error_t **e);
30
31   Reply accessors
32       char *xcb_dri2_connect_driver_name(const xcb_dri2_connect_request_t
33              *reply);
34
35       int xcb_dri2_connect_driver_name_length(const xcb_dri2_connect_reply_t
36              *reply);
37
38       xcb_generic_iterator_t xcb_dri2_connect_driver_name_end(const
39              xcb_dri2_connect_reply_t *reply);
40
41       void *xcb_dri2_connect_alignment_pad(const xcb_dri2_connect_request_t
42              *reply);
43
44       int xcb_dri2_connect_alignment_pad_length(const
45              xcb_dri2_connect_reply_t *reply);
46
47       xcb_generic_iterator_t xcb_dri2_connect_alignment_pad_end(const
48              xcb_dri2_connect_reply_t *reply);
49
50       char *xcb_dri2_connect_device_name(const xcb_dri2_connect_request_t
51              *reply);
52
53       int xcb_dri2_connect_device_name_length(const xcb_dri2_connect_reply_t
54              *reply);
55
56       xcb_generic_iterator_t xcb_dri2_connect_device_name_end(const
57              xcb_dri2_connect_reply_t *reply);
58

REQUEST ARGUMENTS

60       conn      The XCB connection to X11.
61
62       window    TODO: NOT YET DOCUMENTED.
63
64       driver_type
65                 TODO: NOT YET DOCUMENTED.
66

REPLY FIELDS

68       response_type
69                 The type of this reply, in this case XCB_DRI2_CONNECT. This
70                 field is also present in the xcb_generic_reply_t and can be
71                 used to tell replies apart from each other.
72
73       sequence  The sequence number of the last request processed by the X11
74                 server.
75
76       length    The length of the reply, in words (a word is 4 bytes).
77
78       driver_name_length
79                 TODO: NOT YET DOCUMENTED.
80
81       device_name_length
82                 TODO: NOT YET DOCUMENTED.
83

DESCRIPTION

RETURN VALUE

86       Returns an xcb_dri2_connect_cookie_t. Errors have to be handled when
87       calling the reply function xcb_dri2_connect_reply.
88
89       If you want to handle errors in the event loop instead, use
90       xcb_dri2_connect_unchecked. See xcb-requests(3) for details.
91

ERRORS

93       This request does never generate any errors.
94

SEE ALSO

AUTHOR

97       Generated from dri2.xml. Contact xcb@lists.freedesktop.org for correcā€
98       tions and improvements.
99
100
101
102X Version 11                      libxcb 1.13              xcb_dri2_connect(3)
Impressum