xcb_record_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_record_query_version β€” the vibe check for Record extension versions πŸ’–

okay bestie, welcome to the xcb_record_query_version page from the XCB Requests manual (yes, that's the manual name, we're keeping it, it's iconic). this is your girl explaining how you ask the X11 server "hey, what version of the Record extension are you running, bestie?" πŸ¦‹


✨ NAME ✨

xcb_record_query_version β€” so… the description here is literally blank in the original, no cap. πŸ’€ we move on.


🌸 SYNOPSIS 🌸

first things first, you gotta pull in the header:

#include <xcb/record.h>

πŸ’… Request function

xcb_record_query_version_cookie_t
       xcb_record_query_version(xcb_connection_t *conn,
       uint16_t major_version, uint16_t minor_version);

πŸŽ€ Reply datastructure

typedef struct xcb_record_query_version_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint16_t major_version;
    uint16_t minor_version;
} xcb_record_query_version_reply_t;

🫢 Reply function

xcb_record_query_version_reply_t
       *xcb_record_query_version_reply(xcb_connection_t *conn,
       xcb_record_query_version_cookie_t cookie,
       xcb_generic_error_t **e);

⭐ REQUEST ARGUMENTS ⭐

  • conn β€” your XCB connection to X11, the group chat you're sending this into πŸ“±
  • major_version β€” TODO: NOT YET DOCUMENTED. yeah she's a mystery, we don't know her πŸ™ˆ
  • minor_version β€” TODO: NOT YET DOCUMENTED. same energy, no lore available 😭

🌈 REPLY FIELDS 🌈

  • response_type β€” the type of this reply, which in this case is XCB_RECORD_QUERY_VERSION. this field also lives in xcb_generic_reply_t, so you can use it to tell your replies apart from each other πŸ‘‘
  • sequence β€” the sequence number of the last request processed by the X11 server, like a lil timestamp for the gossip πŸ’«
  • length β€” the length of the reply, in words. and bestie, a word here is 4 bytes, remember that πŸ’…
  • major_version β€” TODO: NOT YET DOCUMENTED. still a mystery πŸ•΅οΈ
  • minor_version β€” TODO: NOT YET DOCUMENTED. also a mystery, we know nothing, zero tea πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

literally nothing here in the original. the section exists, it's just empty. slay, i guess ✨

πŸ’œ RETURN VALUE πŸ’œ

it hands you back an xcb_record_query_version_cookie_t πŸͺ β€” and here's the thing, bestie: errors have to be handled when you call the reply function xcb_record_query_version_reply.

if you'd rather handle errors in the event loop instead, use xcb_record_query_version_unchecked. see xcb-requests(3) for details, fr fr πŸ“–


πŸ”₯ ERRORS πŸ”₯

this request does never generate any errors. not one. clean run, no drama, we love that for her πŸ’–

🧚 SEE ALSO 🧚

empty in the original too. no cross-refs, no links, just vibes 🌸

πŸ‘‘ AUTHOR πŸ‘‘

Generated from record.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. 🫢


and that's the whole page, bestie! this one came from libxcb 1.17.0, part of X Version 11, and yeah, the page title is xcb_record_query_version(3) in case you forgot already πŸ’… periodt, go forth and query those versions βœ¨πŸ’–πŸŽ€