xcb_input_xi_list_properties(3)
π xcb_input_xi_list_properties(3) β¨
okay bestie, so this is a page from the XCB Requests manual set β it's xcb_input_xi_list_properties(3) and it's giving "ask the server what properties a device has" energy. let's get into it π«Ά
πΈ NAME πΈ
xcb_input_xi_list_properties -
(yeah the description is literally blank up there, the manpage authors left us on read π we still love them tho)
π SYNOPSIS π
first things first, you gotta bring in the header:
#include <xcb/xinput.h>
β¨ Request function β¨
xcb_input_xi_list_properties_cookie_t
xcb_input_xi_list_properties(xcb_connection_t *conn,
xcb_input_device_id_t deviceid);
π¦ Reply datastructure π¦
typedef struct xcb_input_xi_list_properties_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t num_properties;
uint8_t pad1[22];
} xcb_input_xi_list_properties_reply_t;
π Reply function π
xcb_input_xi_list_properties_reply_t
*xcb_input_xi_list_properties_reply(xcb_connection_t *conn,
xcb_input_xi_list_properties_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors π
xcb_atom_t *xcb_input_xi_list_properties_properties(const
xcb_input_xi_list_properties_request_t *reply);
int xcb_input_xi_list_properties_properties_length(const
xcb_input_xi_list_properties_reply_t *reply);
xcb_generic_iterator_t xcb_input_xi_list_properties_properties_end(const
xcb_input_xi_list_properties_reply_t *reply);
π₯ REQUEST ARGUMENTS π₯
connβ bestie this is your XCB connection to X11. your whole link to the server, your main character pipeline π«deviceidβ TODO: NOT YET DOCUMENTED. yeah. iconic of them. no notes π
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_INPUT_XI_LIST_PROPERTIES. this field is also present in thexcb_generic_reply_t, so you can use it to tell replies apart from each other. it's the little name tag at the party π·οΈsequenceβ the sequence number of the last request processed by the X11 server. tracking the timeline fr fr β±οΈlengthβ the length of the reply, in words. and reminder: a word is 4 bytes. no cap πnum_propertiesβ TODO: NOT YET DOCUMENTED. again. they really said "you'll figure it out" π
π DESCRIPTION π
(there is literally nothing here. the DESCRIPTION section is empty. it's giving mystery, it's giving "figure it out yourself queen", and honestly? we respect it π )
β RETURN VALUE β
So it hands you back an xcb_input_xi_list_properties_cookie_t. that's your little ticket, your receipt, your "your order is being prepared" slip π§Ύ
Errors? You don't get to deal with them here. You have to handle them when you call the reply function xcb_input_xi_list_properties_reply.
But β and this is the plot twist β if you'd rather handle errors in the event loop instead, use xcb_input_xi_list_properties_unchecked. See xcb-requests(3) for the details, bestie, they explain it better than I can π«Ά
π ERRORS π
This request does never generate any errors.
not a single one. zero. none. it's flawless, it's unbothered, it's that girl β¨
πΈ SEE ALSO πΈ
(nothing listed. an empty section. we're just here vibing in the silence π§)
π AUTHOR π
Generated from xinput.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
like, if something's wrong, that's the inbox to slide into π¬
and that's the whole page, bestie!! π this one came from X Version 11, libxcb 1.17.0 β so if you're running that era of the stack, you're all set. mwah, go list some properties, you got this πβ¨π
π¦ 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