xcb_xf86dri_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_xf86dri_query_version πŸ’…

okay bestie, welcome to the xcb_xf86dri_query_version(3) page β€” it lives under the XCB Requests umbrella, and honestly? it's giving "short but iconic." we're asking the X server what version of the DRI (Direct Rendering Infrastructure) it's running. let's get into it ✨


NAME 🌈

xcb_xf86dri_query_version β€” that's literally it, the description slot is empty, the mystery is the moment πŸŽ€


SYNOPSIS πŸ¦‹

first things first, you gotta pull in the header:

#include <xcb/xf86dri.h>

✨ Request function ✨

xcb_xf86dri_query_version_cookie_t
       xcb_xf86dri_query_version(xcb_connection_t *conn,

✨ Reply datastructure ✨

this is the lil struct you get back, and yes every field matters:

typedef struct xcb_xf86dri_query_version_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint16_t dri_major_version;
    uint16_t dri_minor_version;
    uint32_t dri_minor_patch;
} xcb_xf86dri_query_version_reply_t;

✨ Reply function ✨

xcb_xf86dri_query_version_reply_t
       *xcb_xf86dri_query_version_reply(xcb_connection_t *conn,
       xcb_xf86dri_query_version_cookie_t cookie,
       xcb_generic_error_t **e);

REQUEST ARGUMENTS πŸ“

  • conn β€” your XCB connection to X11. that's the whole list, bestie, she's low maintenance πŸ’–

REPLY FIELDS 🧚

  • response_type β€” the type of this reply, which in this case is XCB_XF86DRI_QUERY_VERSION. this field also lives in the xcb_generic_reply_t, so you can use it to tell replies apart from each other. very "which one of y'all is this" energy πŸ‘‘
  • sequence β€” the sequence number of the last request processed by the X11 server.
  • length β€” the length of the reply, in words (and a word here is 4 bytes, no cap).
  • dri_major_version β€” TODO: NOT YET DOCUMENTED. the lore is not yet written, we simply do not know 😭
  • dri_minor_version β€” TODO: NOT YET DOCUMENTED. same situation, the docs said "not today" πŸ™ˆ
  • dri_minor_patch β€” TODO: NOT YET DOCUMENTED. and this one? also a mystery, iconic of it honestly πŸ’€

DESCRIPTION 🌸

this section is literally empty in the source, so there's nothing to spill β€” no notes, no lore, just vibes ✨

RETURN VALUE πŸ’œ

returns an xcb_xf86dri_query_version_cookie_t. the way that errors work here is they have to be handled when you call the reply function xcb_xf86dri_query_version_reply.

and if you'd rather handle errors in the event loop instead, use xcb_xf86dri_query_version_unchecked β€” see xcb-requests(3) for the details, bestie, it's all in there 🫢


ERRORS πŸ’€

this request does never generate any errors. not one. zero. slay, honestly πŸŽ€


SEE ALSO ⭐

this section is empty in the source β€” nothing linked, nothing listed, just a lil blank space 🌈

AUTHOR πŸ‘‘

generated from xf86dri.xml. contact xcb@lists.freedesktop.org for corrections and improvements β€” they wanna hear from you fr fr πŸ’Œ


and that's a wrap on xcb_xf86dri_query_version(3)!! this page came to you from X Version 11, libxcb 1.17.0, and it's officially the end of the page β€” go query some versions, bestie, you got this πŸ’…βœ¨πŸ¦‹