xcb_dri2_query_version(3)
π xcb_dri2_query_version β the xcb_dri2_query_version(3) page, but make it cute π
okay so bestie, we're in the XCB Requests section of the manual and this lil guy is literally named xcb_dri2_query_version. that's it. that's the whole NAME entry, the description part is just blank β it's giving mysterious main character energy and honestly? we respect it. β¨
πΈ SYNOPSIS πΈ
first things first, you gotta pull in the header:
#include <xcb/dri2.h>
π Request function
xcb_dri2_query_version_cookie_t
xcb_dri2_query_version(xcb_connection_t *conn,
uint32_t major_version, uint32_t minor_version);
π¦ Reply datastructure
typedef struct xcb_dri2_query_version_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t major_version;
uint32_t minor_version;
} xcb_dri2_query_version_reply_t;
π Reply function
xcb_dri2_query_version_reply_t
*xcb_dri2_query_version_reply(xcb_connection_t *conn,
xcb_dri2_query_version_cookie_t cookie, xcb_generic_error_t **e);
β¨ REQUEST ARGUMENTS β¨
connβ your XCB connection to X11. the link-up, the group chat, the whole vibe. πmajor_versionβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs said "idk yet" and left it at that πminor_versionβ TODO: NOT YET DOCUMENTED. same energy, same mystery, no cap π
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_DRI2_QUERY_VERSION. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. it's the "which one of y'all texted me" field fr fr πsequenceβ the sequence number of the last request processed by the X11 server. your lil receipt number π§Ύlengthβ how long the reply is, measured in words β and heads up, one word is4bytes. so do the math, bestie πmajor_versionβ TODO: NOT YET DOCUMENTED. iconic cryptic behaviour, we stan a blank slate β¨minor_versionβ TODO: NOT YET DOCUMENTED. truly said nothing and left π
π DESCRIPTION π
soβ¦ there's literally nothing here. the DESCRIPTION section is empty. not a single word. it's giving "showed up to the function, said nothing, served looks" and honestly, that's a mood. π«Ά
β RETURN VALUE β
this one hands you back an xcb_dri2_query_version_cookie_t. and listen β errors do NOT get handled here. you handle them later, when you call the reply function xcb_dri2_query_version_reply. that's the deal, no shortcuts. π
if you'd rather handle your errors inside the event loop instead, use xcb_dri2_query_version_unchecked. want the full tea on how that works? go read xcb-requests(3), it explains the details. π
π ERRORS π
this request never generates any errors. not a single one. flawless, unbothered, no drama, periodt. β¨
π₯ SEE ALSO π₯
β¦yeah there's nothing listed here either. the section is just vibing, empty, alone, at peace. π
π AUTHOR π
generated from dri2.xml. if you spot something wrong or wanna make it better, hit up xcb@lists.freedesktop.org β they take corrections and improvements. be nice, bestie, they're doing their best π«Ά
and that's the whole page!! π this gem came to you from X Version 11, running on libxcb 1.17.0 β so go forth, query your version, and slay. no date on this one, it's timeless, like you. ππβ¨
π¦ 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