xcb_dri3_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_dri3_query_version(3) πŸ’–

okay so bestie, welcome to the XCB Requests section of the manual, page xcb_dri3_query_version. this is from libxcb, she's an icon, and she's here to let you ask the X server what version of DRI3 it's running. let's get into it πŸ¦‹


✨ NAME ✨

xcb_dri3_query_version β€” literally the request that asks the X server "hey girl what version of DRI3 are you on?"


✨ SYNOPSIS ✨

#include <xcb/dri3.h>

πŸŽ€ Request function πŸŽ€

xcb_dri3_query_version_cookie_t
       xcb_dri3_query_version(xcb_connection_t *conn,
       uint32_t major_version, uint32_t minor_version);

πŸŽ€ Reply datastructure πŸŽ€

typedef struct xcb_dri3_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_dri3_query_version_reply_t;

πŸŽ€ Reply function πŸŽ€

xcb_dri3_query_version_reply_t
       *xcb_dri3_query_version_reply(xcb_connection_t *conn,
       xcb_dri3_query_version_cookie_t cookie, xcb_generic_error_t **e);

✨ REQUEST ARGUMENTS ✨

  • conn β€” the XCB connection to X11, your lil hotline to the server πŸ’…
  • major_version β€” TODO: NOT YET DOCUMENTED. yeah bestie, they really left us hanging on this one 😭
  • minor_version β€” TODO: NOT YET DOCUMENTED. same energy, no notes, nobody wrote it πŸ™ˆ

✨ REPLY FIELDS ✨

  • response_type β€” the type of this reply, and in this case it's XCB_DRI3_QUERY_VERSION. this field is also chillin' in the xcb_generic_reply_t, so you can use it to tell replies apart from each other πŸ‘‘
  • sequence β€” the sequence number of the last request processed by the X11 server ✨
  • length β€” the length of the reply, in words. and just so we're clear: a word is 4 bytes πŸŽ€
  • major_version β€” TODO: NOT YET DOCUMENTED. nope, still nothing 🫠
  • minor_version β€” TODO: NOT YET DOCUMENTED. and also nothing πŸ’€

✨ DESCRIPTION ✨

this section is empty in the original, bestie. not me staring at a blank DESCRIPTION like πŸ‘οΈπŸ‘„πŸ‘οΈ. nothing to report, moving on πŸ’œ

✨ RETURN VALUE ✨

returns an xcb_dri3_query_version_cookie_t. and listen β€” errors have to be handled when you call the reply function xcb_dri3_query_version_reply. that's not optional, that's just the vibe check πŸ”₯

if you'd rather handle errors in the event loop instead, use xcb_dri3_query_version_unchecked. see xcb-requests(3) for details, iykyk 🌸


✨ ERRORS ✨

this request does never generate any errors. not a single one. she's flawless, she's unproblematic, she ate and left no crumbs πŸ’…βœ¨


✨ SEE ALSO ✨

also empty in the original, bestie 😭 nothing linked here, we're on our own fr fr 🧚

✨ AUTHOR ✨

generated from dri3.xml. contact xcb@lists.freedesktop.org for corrections and improvements πŸ“§


okay that's the whole page, bestie, you're basically a DRI3 version-querying main character now πŸ‘‘

X Version 11 Β· libxcb 1.17.0 Β· xcb_dri3_query_version(3) β€” that's the source, the version and the date right there, periodt πŸ’– bye bestie, go query some versions πŸ¦‹πŸŒΈπŸ’