xcb_input_lis...ce_properties(3)
β¨ xcb_input_list_device_properties β¨
okay bestie, so this is a page from the XCB Requests manual (yes, the X protocol binding girlies), and it's all about xcb_input_list_device_properties β a lil request that asks the X server for the properties hanging off one of your input devices. it's giving "let me see what's on that device's resume" energy. π
πΈ NAME πΈ
xcb_input_list_device_properties β ngl the original page literally just leaves this blank after the dash, so likeβ¦ the name is the name, bestie. we move. π
β¨ SYNOPSIS β¨
first up, you gotta pull in the header:
#include <xcb/xinput.h>
π Request function
xcb_input_list_device_properties_cookie_t
xcb_input_list_device_properties(xcb_connection_t *conn,
uint8_t device_id);
π¦ Reply datastructure
this is the struct that comes back, and every field matters, so here it is in all its glory, no cap:
typedef struct xcb_input_list_device_properties_reply_t {
uint8_t response_type;
uint8_t xi_reply_type;
uint16_t sequence;
uint32_t length;
uint16_t num_atoms;
uint8_t pad0[22];
} xcb_input_list_device_properties_reply_t;
π Reply function
xcb_input_list_device_properties_reply_t
*xcb_input_list_device_properties_reply(xcb_connection_t *conn,
xcb_input_list_device_properties_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors
these are the little helpers that dig into the reply for you β lowkey obsessed with them:
xcb_atom_t *xcb_input_list_device_properties_atoms(const
xcb_input_list_device_properties_request_t *reply);
int xcb_input_list_device_properties_atoms_length(const
xcb_input_list_device_properties_reply_t *reply);
xcb_generic_iterator_t xcb_input_list_device_properties_atoms_end(const
xcb_input_list_device_properties_reply_t *reply);
π«Ά REQUEST ARGUMENTS π«Ά
connβ the XCB connection to X11. your lil hotline to the server, basically. πdevice_idβ TODO: NOT YET DOCUMENTED. yeah bestie, even the manpage authors were like "we'll get to it". π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_INPUT_LIST_DEVICE_PROPERTIES. this field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. so like, it's the reply's whole identity. main character energy. πsequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, in words. and reminder bestie: a word is 4 bytes. β¨xi_reply_typeβ TODO: NOT YET DOCUMENTED.num_atomsβ TODO: NOT YET DOCUMENTED.
πΈ DESCRIPTION πΈ
okay so. the description section on this page isβ¦ literally empty. nothing. void. a blank canvas. π³οΈ the vibe is immaculate but the words are not there, and i'm not gonna invent lore that the manpage didn't give me. so we simply vibe in silence. π
β RETURN VALUE β
it hands you back an xcb_input_list_device_properties_cookie_t β a cookie!! πͺ errors have to be handled when you call the reply function xcb_input_list_device_properties_reply, so don't just sit on that cookie forever.
if you'd rather handle errors in the event loop instead, use xcb_input_list_device_properties_unchecked. see xcb-requests(3) for the details, iykyk.
π ERRORS π
this request does never generate any errors. not one. zero. she's perfect, she's unproblematic, she does not start drama. π β¨
π SEE ALSO π
β¦nothing listed here, bestie. the section exists, the content does not. we respect her privacy. π¦
π AUTHOR π
generated from xinput.xml. contact xcb@lists.freedesktop.org for corrections and improvements β so if you spot something sus, that's the address to slide into. π©
and that's the whole page, bestie!! this little beauty came from X Version 11, libxcb 1.17.0, and it's part of the XCB Requests manual β go forth and list those device properties, you absolute icon. π§ππΈ
π¦ 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