xcb_dri2_query_version(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 is XCB_DRI2_QUERY_VERSION. this field also lives in the xcb_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 is 4 bytes. 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. πŸŒˆπŸ‘‘βœ¨