xcb_dri2_connect(3)
β¨ xcb_dri2_connect β¨
okay bestie, welcome to xcb_dri2_connect(3) π this is one of those XCB request pages from the XCB Requests corner of the X11 universe, and yes, she's giving "the docs are a little shy" energy. Let's get into it π«Ά
πΈ NAME πΈ
xcb_dri2_connect β (literally the whole description, bestie. it's blank. iconic of her honestly π
)
π SYNOPSIS π
First up, the include. You need this or nothing works, no cap:
#include <xcb/dri2.h>
π Request function
xcb_dri2_connect_cookie_t xcb_dri2_connect(xcb_connection_t *conn,
xcb_window_t window, uint32_t driver_type);
π Reply datastructure
Look at this struct, she's structured, she's organized, she's a whole vibe:
typedef struct xcb_dri2_connect_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t driver_name_length;
uint32_t device_name_length;
uint8_t pad1[16];
} xcb_dri2_connect_reply_t;
π Reply function
xcb_dri2_connect_reply_t *xcb_dri2_connect_reply(xcb_connection_t *conn,
xcb_dri2_connect_cookie_t cookie, xcb_generic_error_t **e);
π Reply accessors
these are the little helpers that go digging around inside the reply for you π§:
char *xcb_dri2_connect_driver_name(const xcb_dri2_connect_request_t
*reply);
int xcb_dri2_connect_driver_name_length(const xcb_dri2_connect_reply_t
*reply);
xcb_generic_iterator_t xcb_dri2_connect_driver_name_end(const
xcb_dri2_connect_reply_t *reply);
void *xcb_dri2_connect_alignment_pad(const xcb_dri2_connect_request_t
*reply);
int xcb_dri2_connect_alignment_pad_length(const xcb_dri2_connect_reply_t
*reply);
xcb_generic_iterator_t xcb_dri2_connect_alignment_pad_end(const
xcb_dri2_connect_reply_t *reply);
char *xcb_dri2_connect_device_name(const xcb_dri2_connect_request_t
*reply);
int xcb_dri2_connect_device_name_length(const xcb_dri2_connect_reply_t
*reply);
xcb_generic_iterator_t xcb_dri2_connect_device_name_end(const
xcb_dri2_connect_reply_t *reply);
π« yes, some of these take anxcb_dri2_connect_request_tand some take anxcb_dri2_connect_reply_t. that's exactly how they're written up there. don't come for me, come for the docs. π
π REQUEST ARGUMENTS π
connβ The XCB connection to X11. your little telephone line to the server, fr fr πwindowβTODO: NOT YET DOCUMENTED.π bestie they just left it blank. we do not know. it remains a mystery.driver_typeβTODO: NOT YET DOCUMENTED.π also a mystery. also blank. the docs said "figure it out."
π¦ REPLY FIELDS π¦
response_typeβ The type of this reply, in this caseXCB_DRI2_CONNECT. This field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. she's the name tag at the party, so you know who walked in πsequenceβ The sequence number of the last request processed by the X11 server.lengthβ The length of the reply, in words (a word is 4 bytes). math girlies stay winning β¨driver_name_lengthβTODO: NOT YET DOCUMENTED.device_name_lengthβTODO: NOT YET DOCUMENTED.
πΈ DESCRIPTION πΈ
β¦and that's it. that's the section. it's empty. she said "no thoughts, head empty" π
β RETURN VALUE β
Returns an xcb_dri2_connect_cookie_t. Errors have to be handled when calling the reply function xcb_dri2_connect_reply.
If you want to handle errors in the event loop instead, use xcb_dri2_connect_unchecked. See xcb-requests(3) for details.
π so like, the cookie is your lil ticket, and you trade it in atxcb_dri2_connect_replyto get the actual reply. or you go the_uncheckedroute and deal with errors in the event loop. choose your fighter. π«Ά
π ERRORS π
This request does never generate any errors.
π₯ nothing. not a single one. she's unproblematic. periodt.
π SEE ALSO π
(nothing listed here, bestie. the void. the empty set. we move.)
π AUTHOR π
Generated from dri2.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, bestie! π this one came out of X Version 11, libxcb 1.17.0, so if you're running something wildly different and it's giving chaos, that's why. mwah, go connect something π β¨
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms