xcb_input_xi_query_version(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 case XCB_INPUT_XI_QUERY_VERSION. This field is also present in the xcb_generic_reply_t and 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 πŸ¦‹βœ¨πŸ’–