xcb_dri2_authenticate(3)
π xcb_dri2_authenticate π
okay bestie, so this one lives in the libxcb crew β it's the manual page for xcb_dri2_authenticate(3), part of XCB Requests. it's a lil DRI2 authenticate situation and honestly it's giving "mystery box" energy because half the fields are literally undocumented π but we're gonna walk through every single one anyway because that's what we do. π«Ά
β¨ NAME β¨
xcb_dri2_authenticate β [the original has no description here, bestie, it's just vibes and a blank]
πΈ SYNOPSIS πΈ
#include <xcb/dri2.h>
π Request function
xcb_dri2_authenticate_cookie_t
xcb_dri2_authenticate(xcb_connection_t *conn,
xcb_window_t window, uint32_t magic);
π¦ Reply datastructure
typedef struct xcb_dri2_authenticate_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t authenticated;
} xcb_dri2_authenticate_reply_t;
β Reply function
xcb_dri2_authenticate_reply_t
*xcb_dri2_authenticate_reply(xcb_connection_t *conn,
xcb_dri2_authenticate_cookie_t cookie, xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. the whole portal to the server, no biggie. πwindowβTODO: NOT YET DOCUMENTED.bestie they really said "figure it out" π it's a window, you pass a window, we move on.magicβTODO: NOT YET DOCUMENTED.also undocumented! it's auint32_tand it's called magic, which is honestly the most honest name in this entire library β¨
π REPLY FIELDS π
response_typeβ the type of this reply, which in this specific case isXCB_DRI2_AUTHENTICATE. this field is also chillin' insidexcb_generic_reply_t, and it's literally how you tell your replies apart from each other. vibe check for replies, fr fr. πsequenceβ the sequence number of the last request that got processed by the X11 server. it's the receipts. π§Ύlengthβ how long the reply is, counted in words. and a word here is 4 bytes, so don't come at it with your letter-counting, this is not that kind of length. πauthenticatedβTODO: NOT YET DOCUMENTED.yeah. again. three for three on mystery fields, slay I guess π
π DESCRIPTION π
this section is empty in the original. absolutely nothing here. no notes. silence. π€«
π₯ RETURN VALUE π₯
so you get back an xcb_dri2_authenticate_cookie_t β a lil cookie, a promise of a reply to come. πͺ
errors? you do not handle them here, bestie. you handle them when you call the reply function xcb_dri2_authenticate_reply.
and if you're the type who wants to catch errors in the event loop instead? use xcb_dri2_authenticate_unchecked for that. peek xcb-requests(3) for the deets. π«Ά
π ERRORS π
this request never generates any errors. never ever. not one. iconic behaviour honestly, zero drama. periodt. β¨
πΈ SEE ALSO πΈ
nothing listed in the original β the section exists but it's empty. ghosted. π»
π AUTHOR π
generated from dri2.xml. if you spot something wrong and wanna make it better, hit up xcb@lists.freedesktop.org for corrections and improvements. they're accepting submissions, bestie, go be the main character. π
and that's the whole page!! this came to you from X Version 11, libxcb 1.17.0 β stay authentic, stay hydrated, and remember: undocumented fields are just β¨mysteriousβ¨, not scary. mwah π πβ¨
π¦ 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