xcb_randr_query_version(3)
π xcb_randr_query_version β the XCB Requests glow-up π
okay bestie, so this is a page from the XCB Requests manual set, and its whole name is xcb_randr_query_version(3). It's part of the RandR fam (that's "Resize and Rotate", the thing that lets your screens do their little layout thing). Let's get into it π
β¨ NAME β¨
xcb_randr_query_version -
ngl the original page literally just leaves a lil dash here and nothing else. No description. We keep it real, so the dash stays π«Ά
πΈ SYNOPSIS πΈ
#include <xcb/randr.h>
π Request function
xcb_randr_query_version_cookie_t
xcb_randr_query_version(xcb_connection_t *conn,
uint32_t major_version, uint32_t minor_version);
π Reply datastructure
typedef struct xcb_randr_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_randr_query_version_reply_t;
π Reply function
xcb_randr_query_version_reply_t
*xcb_randr_query_version_reply(xcb_connection_t *conn,
xcb_randr_query_version_cookie_t cookie,
xcb_generic_error_t **e);
π¦ REQUEST ARGUMENTS π¦
connβ the XCB connection to X11. that's your lil phone line to the server, bestie πmajor_versionβ TODO: NOT YET DOCUMENTED. yeah. the page really said "we'll get to it". iconic of them tbh πminor_versionβ TODO: NOT YET DOCUMENTED. same energy. nobody wrote this part fr fr
β REPLY FIELDS β
response_typeβ the type of this reply, and in this case it'sXCB_RANDR_QUERY_VERSION. This field is also present in thexcb_generic_reply_t, so you can use it to tell replies apart from each other πsequenceβ the sequence number of the last request processed by the X11 server. it's giving "receipt number" π§Ύlengthβ the length of the reply, in words. and heads up: a word is 4 bytes in this house πmajor_versionβ TODO: NOT YET DOCUMENTED. again!! the mystery stays mysterious πminor_versionβ TODO: NOT YET DOCUMENTED. and again. we love a cliffhanger β¨
π DESCRIPTION π
bestie. there is literally nothing here. the DESCRIPTION section is empty. no notes. slay, I guess π
π RETURN VALUE π
It hands you back an xcb_randr_query_version_cookie_t. That's your lil claim ticket, and errors have to be handled when you call the reply function xcb_randr_query_version_reply π
But wait β if you'd rather handle errors inside the event loop instead, use xcb_randr_query_version_unchecked. See xcb-requests(3) for the deets β¨
π ERRORS π
This request does never generate any errors. Periodt. Zero drama, zero errors, it's just out here living its best life π¦
π₯ SEE ALSO π₯
the original page has nothing listed here. an empty section. we're keeping it empty because facts are facts π
π§ AUTHOR π§
Generated from randr.xml. Contact xcb@lists.freedesktop.org for corrections and improvements π«Ά
and that's the whole page, bestie!! written for X Version 11, from libxcb 1.17.0, and the page itself is xcb_randr_query_version(3) πβ¨π no cap, that's all of it. mwah π
π¦ 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