xcb_input_xi_query_device(3)
π xcb_input_xi_query_device π
okay so this is a page from the XCB Requests corner of the universe β it's xcb_input_xi_query_device(3), and bestie, it's literally the request that asks the X server "hey girl, what's up with this device?" and gets the whole tea back. no cap. π
β¨ NAME β¨
xcb_input_xi_query_device β asks the X server for the info about an input device (the description in the original is, and I cannot stress this enough, completely blank, so we're all just vibing here together π«Ά)
πΈ SYNOPSIS πΈ
First things first, you gotta pull in the header:
#include <xcb/xinput.h>
π¦ Request function
xcb_input_xi_query_device_cookie_t
xcb_input_xi_query_device(xcb_connection_t *conn,
xcb_input_device_id_t deviceid);
π¦ Reply datastructure
typedef struct xcb_input_xi_query_device_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t num_infos;
uint8_t pad1[22];
} xcb_input_xi_query_device_reply_t;
π¦ Reply function
xcb_input_xi_query_device_reply_t
*xcb_input_xi_query_device_reply(xcb_connection_t *conn,
xcb_input_xi_query_device_cookie_t cookie,
xcb_generic_error_t **e);
π¦ Reply accessors
the lil helpers that let you actually walk the reply, obsessed:
int xcb_input_xi_query_device_infos_length(const
xcb_input_xi_query_device_reply_t *reply);
xcb_input_xi_device_info_iterator_t
xcb_input_xi_query_device_infos_iterator(const
xcb_input_xi_query_device_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11, your lil hotline to the server πdeviceidβ TODO: NOT YET DOCUMENTED. yeah bestie, nobody wrote this one down yet π
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_INPUT_XI_QUERY_DEVICE. this field also lives in thexcb_generic_reply_t, so you can use it 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. literally the receipt number.lengthβ the length of the reply, in words. and a word is 4 bytes, iykyk β¨num_infosβ TODO: NOT YET DOCUMENTED. we simply do not know, and that's the vibe π
π DESCRIPTION π
okay so the DESCRIPTION section here is empty. like, fully empty. nothing. the void. the original just has the heading and then moves on. so there's nothing to tell you and I refuse to make stuff up π
π RETURN VALUE π
Returns an xcb_input_xi_query_device_cookie_t. it's a cookie bestie, not the answer itself β you gotta trade it in later.
Errors have to be handled when calling the reply function xcb_input_xi_query_device_reply.
If you'd rather handle errors in the event loop instead, use xcb_input_xi_query_device_unchecked. See xcb-requests(3) for details. β¨
π§ ERRORS π§
This request does never generate any errors. periodt. clean. flawless. no drama. π
π₯ SEE ALSO π₯
this section is empty in the original β no references listed at all. nothing to see, nothing to also. π
π AUTHOR π
Generated from xinput.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (so if you spot something off, that's the inbox, bestie π«Ά)
and that's the whole page!! this one came from X Version 11, libxcb 1.17.0, and it's the xcb_input_xi_query_device(3) manual page β thanks for reading, ily, go query some devices π
β¨πΈ
π¦ 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