xcb_present_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_present_query_version β€” the XCB Requests glow-up

okay bestie, so this one lives in the XCB Requests corner of the manual (that's xcb_present_query_version(3), if you're keeping receipts) and it's basically you asking the X server "hey girl, what version of the Present extension are we working with?" ✨


🌸 NAME 🌸

xcb_present_query_version β€” (yeah the original description is literally blank, she's mysterious like that, we love a mystery era πŸ’–)


πŸŽ€ SYNOPSIS πŸŽ€

#include <xcb/present.h>

✨ Request function ✨

xcb_present_query_version_cookie_t
       xcb_present_query_version(xcb_connection_t *conn,
       uint32_t major_version, uint32_t minor_version);

πŸ¦‹ Reply datastructure πŸ¦‹

typedef struct xcb_present_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_present_query_version_reply_t;

πŸ’œ Reply function πŸ’œ

xcb_present_query_version_reply_t
       *xcb_present_query_version_reply(xcb_connection_t *conn,
       xcb_present_query_version_cookie_t cookie,
       xcb_generic_error_t **e);

πŸ“ REQUEST ARGUMENTS πŸ“

  • conn β€” the XCB connection to X11. your lil hotline to the server, periodt πŸ’…
  • major_version β€” TODO: NOT YET DOCUMENTED. (yes bestie, the docs really do just say that, no cap, I'm not gatekeeping anything from you 😭)
  • minor_version β€” TODO: NOT YET DOCUMENTED. (same energy, fr fr β€” the manpage left this one on read πŸ™ˆ)

🌈 REPLY FIELDS 🌈

  • response_type β€” the type of this reply, and in this case it's XCB_PRESENT_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. it's giving name tag at the party πŸŽ€
  • sequence β€” the sequence number of the last request processed by the X11 server. lowkey the server's "seen βœ…" receipt.
  • length β€” the length of the reply, in words (a word is 4 bytes). so do the math, bestie, 4 bytes per word, iconic units 🧚
  • major_version β€” TODO: NOT YET DOCUMENTED. (again!! the manpage said "not yet" and then dipped πŸ’€)
  • minor_version β€” TODO: NOT YET DOCUMENTED. (truly a blank space era πŸ™ˆ)

πŸ‘‘ DESCRIPTION πŸ‘‘

...and that's it. there is literally nothing here. the original page left this section empty, and I'm not about to make stuff up for you, bestie β€” no invented lore in this group chat, that's the rule. ✨


⭐ RETURN VALUE ⭐

Returns an xcb_present_query_version_cookie_t. Errors have to be handled when calling the reply function xcb_present_query_version_reply.

If you'd rather handle errors in the event loop instead, use xcb_present_query_version_unchecked. See xcb-requests(3) for details. pick your fighter, both are valid πŸ’…


πŸ’€ ERRORS πŸ’€

This request does never generate any errors. zero drama, zero chaos, she's a calm queen, we love that for her 🫢


πŸ”₯ SEE ALSO πŸ”₯

...nothing listed. the original page has the heading and then just moves on. so like, vibe with that. 🌸


πŸ’– AUTHOR πŸ’–

Generated from present.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. if you spot something sus, tell the mailing list, not me, I'm just the messenger 🧚


and that's the whole page, bestie β€” every flag, field, and TODO preserved exactly as the original served it, no notes, no embellishment on the technical side πŸŽ€

kisses, this was X Version 11, libxcb 1.17.0, on xcb_present_query_version(3) β€” slay, periodt, go query that version πŸ’…βœ¨