xcb_render_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_render_query_version β€” the XCB Requests girlies' era πŸ’…

okay bestie, so we're in the XCB Requests section of the manual, and this whole page is literally just about asking the X11 server "hey, what version of the Render extension are you running?" πŸ¦‹ It's short, it's sweet, it's giving "quick vibe check before we do anything fancy."


✨ NAME ✨

xcb_render_query_version β€” no cap, the description line is genuinely empty in the original. Just the name and a lonely little dash. She said "my name is enough." πŸ‘‘


✨ SYNOPSIS ✨

First thing's first, you gotta include the header:

#include <xcb/render.h>

πŸŽ€ Request function

xcb_render_query_version_cookie_t
       xcb_render_query_version(xcb_connection_t *conn,
       uint32_t client_major_version, uint32_t client_minor_version);

πŸŽ€ Reply datastructure

typedef struct xcb_render_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;
    uint8_t  pad1[16];
} xcb_render_query_version_reply_t;

πŸŽ€ Reply function

xcb_render_query_version_reply_t
       *xcb_render_query_version_reply(xcb_connection_t *conn,
       xcb_render_query_version_cookie_t cookie,
       xcb_generic_error_t **e);

✨ REQUEST ARGUMENTS ✨

  • conn β€” the XCB connection to X11. your lil phone line to the server, the main character of every request fr fr πŸ”₯
  • client_major_version β€” TODO: NOT YET DOCUMENTED. yeah bestie the docs said "figure it out" 😭 not me leaving it exactly as-is, periodt.
  • client_minor_version β€” also TODO: NOT YET DOCUMENTED. the mystery continues πŸ™ˆ

✨ REPLY FIELDS ✨

  • response_type β€” the type of this reply, in this case XCB_RENDER_QUERY_VERSION. this field also lives in the xcb_generic_reply_t, and it's how you tell your replies apart from each other, iykyk πŸ’…
  • sequence β€” the sequence number of the last request processed by the X11 server. like a lil receipt number 🧾
  • length β€” the length of the reply, in words. and a word is 4 bytes, bestie, don't forget ✨
  • major_version β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • minor_version β€” TODO: NOT YET DOCUMENTED. πŸ’€

✨ DESCRIPTION ✨

lowkey there's nothing here. the DESCRIPTION section is empty. she's silent, she's mysterious, she contains multitudes 🌈

✨ RETURN VALUE ✨

Returns an xcb_render_query_version_cookie_t. πŸͺ

Errors have to be handled when you call the reply function, xcb_render_query_version_reply. that's the moment of truth, no skipping it.

If you'd rather handle errors in the event loop instead (valid, iconic), use xcb_render_query_version_unchecked. go read xcb-requests(3) for the details, bestie, it's all there 🫢


✨ ERRORS ✨

This request does never generate any errors. not one. zero. she's unproblematic, she's drama-free, she ate and left no crumbs πŸ‘‘


✨ SEE ALSO ✨

nothing listed here in the original β€” the section exists but it's empty. the only reference floating around this page is xcb-requests(3), mentioned up in RETURN VALUE, so go peek at that one if you want the full tea β˜•

✨ AUTHOR ✨

Generated from render.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. πŸ“§


and that's the whole page, bestie!! πŸŽ€βœ¨ this lil beauty shipped as part of libxcb 1.17.0, under X Version 11, filed in the XCB Requests section β€” so if you ever forget where she came from, that's the origin story. mwah, go query some versions, slay πŸ’–πŸ¦‹πŸŒΈ