xcb_present_query_version(3)
π 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'sXCB_PRESENT_QUERY_VERSION. this field is also chillin' in thexcb_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 π
β¨
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms