XCB_GENERICEVENT_QUERY_VERSION_UNCHECKED(3)
β¨ xcb_genericevent_query_version β¨
okay bestie, so this is a page from the XCB Requests manual β it's xcb_genericevent_query_version(3), and yes the name is a whole mouthful, we're gonna get through it together π
πΈ NAME πΈ
xcb_genericevent_query_version β literally just the name, the original page leaves it blank, so no extra lore here, iykyk π
π¦ SYNOPSIS π¦
First things first, you gotta include the header:
#include <xcb/ge.h>
π Request function
xcb_genericevent_query_version_cookie_t
xcb_genericevent_query_version(xcb_connection_t *conn,
uint16_t client_major_version, uint16_t client_minor_version);
π Reply datastructure
typedef struct xcb_genericevent_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;
uint8_t pad1[20];
} xcb_genericevent_query_version_reply_t;
β Reply function
xcb_genericevent_query_version_reply_t
*xcb_genericevent_query_version_reply(xcb_connection_t *conn,
xcb_genericevent_query_version_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11, your little hotline to the server, no cap π«Άclient_major_versionβTODO: NOT YET DOCUMENTED.(not me leaving it like the original did, bestie, it's giving mysterious π)client_minor_versionβTODO: NOT YET DOCUMENTED.(same energy, the lore is unwritten π)
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_GENERICEVENT_QUERY_VERSION. this field also lives in thexcb_generic_reply_t, so you can use it to tell replies apart from each other. main character energy for real πsequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, in words (and a word is 4 bytes, keep that in mind bestie π).major_versionβTODO: NOT YET DOCUMENTED.πminor_versionβTODO: NOT YET DOCUMENTED.π
β¨ DESCRIPTION β¨
(so real talk, the original page has literally nothing here. iconic of it. slay π )
π RETURN VALUE π
It returns an xcb_genericevent_query_version_cookie_t. Errors have to be handled when you call the reply function xcb_genericevent_query_version_reply.
If you'd rather handle errors in the event loop instead, use xcb_genericevent_query_version_unchecked. See xcb-requests(3) for the details, go read it, it's worth it π§
π₯ ERRORS π₯
This request does never generate any errors. periodt. zero drama, zero errors, we love a peaceful queen β¨
πΈ SEE ALSO πΈ
(also empty in the original β the vibe is minimal, the silence is loud π)
π«Ά AUTHOR π«Ά
Generated from ge.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (they're the real ones, fr fr π)
and that's the whole page bestie!! tysm for reading, mwah ππ
this was brought to you by X Version 11 and libxcb 1.17.0 β stay hydrated, keep your file descriptors closed, and slay ππ¦β¨
π¦ 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