xcb_input_xi_query_version(3)
π xcb_input_xi_query_version π
okay bestie, so this page lives in the XCB Requests manual section, and it's all about asking the X server "hey girl, what version of XInput are you running?" β¨ It's xcb_input_xi_query_version, and yes, the name is a mouthful, but she's iconic and she knows it. π
β¨ NAME β¨
xcb_input_xi_query_version β
(yeah, the original literally leaves this blank, no cap, so we're all just vibing with the function name itself π«Ά)
πΈ SYNOPSIS πΈ
First things first, you gotta pull in the header:
#include <xcb/xinput.h>
π¦ Request function
xcb_input_xi_query_version_cookie_t
xcb_input_xi_query_version(xcb_connection_t *conn,
uint16_t major_version, uint16_t minor_version);
π¦ Reply datastructure
typedef struct xcb_input_xi_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_input_xi_query_version_reply_t;
π¦ Reply function
xcb_input_xi_query_version_reply_t
*xcb_input_xi_query_version_reply(xcb_connection_t *conn,
xcb_input_xi_query_version_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, she's the main character here π₯major_versionβ TODO: NOT YET DOCUMENTED. (the docs really said "we'll get to it" π)minor_versionβ TODO: NOT YET DOCUMENTED. (same energy, same void π)
π REPLY FIELDS π
response_typeβ the type of this reply, in this caseXCB_INPUT_XI_QUERY_VERSION. This field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. it's giving name tag at a party πsequenceβ the sequence number of the last request processed by the X11 server. keeping receipts, literally π§Ύlengthβ the length of the reply, in words (a word is 4 bytes). yes bestie, a word is 4 bytes, write that down πmajor_versionβ TODO: NOT YET DOCUMENTED. πminor_versionβ TODO: NOT YET DOCUMENTED. π
π DESCRIPTION π
nothing here, bestie. the original page has this section totally empty. no notes, no description, just vibes. β¨
β RETURN VALUE β
Returns an xcb_input_xi_query_version_cookie_t. πͺ (a cookie!! cute!!)
Errors have to be handled when calling the reply function xcb_input_xi_query_version_reply.
If you want to handle errors in the event loop instead, use xcb_input_xi_query_version_unchecked. See xcb-requests(3) for details. π«Ά
π ERRORS π
This request does never generate any errors. periodt. zero drama, she's not messy, we love that for her π
π₯ SEE ALSO π₯
the original page lists absolutely nothing here. an empty SEE ALSO section. iconic of her honestly, she doesn't need anyone else π
πΈ AUTHOR πΈ
Generated from xinput.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. π§
okay and that's the whole page, bestie!! this one came from X Version 11, libxcb 1.17.0, and it's filed under xcb_input_xi_query_version(3). go forth and query those versions, you absolute legend π¦β¨π
π¦ 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