xcb_shape_query_version(3)
β¨ xcb_shape_query_version π
okay bestie, welcome to the XCB Requests corner of the manual, page xcb_shape_query_version(3). yes the name is long. yes you're gonna say it in one breath. let's go π¦
πΈ NAME πΈ
xcb_shape_query_version β it asks the X server what version of the SHAPE extension it's running (the NAME section was literally just vibes and a dash, so we're keeping it real)
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header, no cap:
#include <xcb/shape.h>
π Request function
xcb_shape_query_version_cookie_t
xcb_shape_query_version(xcb_connection_t *conn,
π«Ά Reply datastructure
this is the lil struct that comes back at you:
typedef struct xcb_shape_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_shape_query_version_reply_t;
π Reply function
xcb_shape_query_version_reply_t
*xcb_shape_query_version_reply(xcb_connection_t *conn,
xcb_shape_query_version_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. that's it. that's the whole argument list. iconic, honestly.
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_SHAPE_QUERY_VERSION. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other when they're all piled up in the group chat.sequenceβ the sequence number of the last request the X11 server processed. like a lil receipt number π§Ύlengthβ how long the reply is, in words. and no, not vibes words β a word here is 4 bytes.major_versionβ TODO: NOT YET DOCUMENTED. (bestie the docs really said "figure it out" π)minor_versionβ TODO: NOT YET DOCUMENTED. (same energy, same void π³οΈ)
π DESCRIPTION π
okay so. the DESCRIPTION section is empty. nothing. a whole blank. not me staring at the void π
β RETURN VALUE β
you get back an xcb_shape_query_version_cookie_t πͺ β a cookie, a promise, a little "your answer is coming, bestie."
errors have to be handled when you call the reply function xcb_shape_query_version_reply.
but if you'd rather handle errors in the event loop instead? use xcb_shape_query_version_unchecked. see xcb-requests(3) for the details, iykyk.
π ERRORS π
this request never generates any errors. zero. none. not a single one. it's giving peaceful. β¨
π SEE ALSO π
(the SEE ALSO section was empty too, so there's nothing to point you at β go live your life π¦)
π AUTHOR π
generated from shape.xml. contact xcb@lists.freedesktop.org for corrections and improvements β fr fr, they want your feedback.
and that's the whole page, bestie π«Ά this one came from X Version 11, libxcb 1.17.0, and it lives at xcb_shape_query_version(3). go query that version, you absolute main character π
π
π¦ 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