xcb_input_get_device_property(3)
β¨ xcb_input_get_device_property(3) β XCB Requests β¨
okay bestie, gather round π this is a page from the XCB Requests corner of the X world, and it's literally all about grabbing a property off an input device. no cap, that's the whole vibe.
πΈ NAME πΈ
xcb_input_get_device_property β (the description here is literally blank in the source, and honestly? iconic of it to leave us guessing π so we move on)
π¦ SYNOPSIS π¦
First up, you gotta pull in the header:
#include <xcb/xinput.h>
π Request function
xcb_input_get_device_property_cookie_t
xcb_input_get_device_property(xcb_connection_t *conn,
xcb_atom_t property, xcb_atom_t type, uint32_t offset,
uint32_t len, uint8_t device_id, uint8_t _delete);
π Reply datastructure
typedef struct xcb_input_get_device_property_reply_t {
uint8_t response_type;
uint8_t xi_reply_type;
uint16_t sequence;
uint32_t length;
xcb_atom_t type;
uint32_t bytes_after;
uint32_t num_items;
uint8_t format;
uint8_t device_id;
uint8_t pad0[10];
} xcb_input_get_device_property_reply_t;
π Reply function
xcb_input_get_device_property_reply_t
*xcb_input_get_device_property_reply(xcb_connection_t *conn,
xcb_input_get_device_property_cookie_t cookie,
xcb_generic_error_t **e);
β Reply accessors
xcb_input_get_device_property_items_t
*xcb_input_get_device_property_items (const
xcb_input_get_device_property_request_t *reply)
π REQUEST ARGUMENTS π
connβ your XCB connection to X11, the whole reason we're here π«Άpropertyβ TODO: NOT YET DOCUMENTED. (the docs really said "we'll get to it" and then did not π)typeβ TODO: NOT YET DOCUMENTED.offsetβ TODO: NOT YET DOCUMENTED.lenβ TODO: NOT YET DOCUMENTED.device_idβ TODO: NOT YET DOCUMENTED._deleteβ TODO: NOT YET DOCUMENTED.
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_INPUT_GET_DEVICE_PROPERTY. this field is also chilling in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other πsequenceβ the sequence number of the last request the X11 server actually processed.lengthβ the length of the reply, measured in words (and one word = 4 bytes, fyi).xi_reply_typeβ TODO: NOT YET DOCUMENTED.typeβ TODO: NOT YET DOCUMENTED.bytes_afterβ TODO: NOT YET DOCUMENTED.num_itemsβ TODO: NOT YET DOCUMENTED.formatβ TODO: NOT YET DOCUMENTED.device_idβ TODO: NOT YET DOCUMENTED.
πΈ DESCRIPTION πΈ
(there is literally nothing here in the original. an empty section. a moment of silence for the description that never was πποΈ)
π RETURN VALUE π
It hands you back an xcb_input_get_device_property_cookie_t πͺ. Errors? You gotta deal with those when you call the reply function, xcb_input_get_device_property_reply.
If you'd rather handle errors in the event loop instead, use xcb_input_get_device_property_unchecked. Peep xcb-requests(3) for the deets.
π§ ERRORS π§
okay so this request never generates any errors. not one. zero. a clean girlie β¨ no drama, no errors, periodt.
π¦ SEE ALSO π¦
(nothing listed here in the source β the void, but make it cute π)
π AUTHOR π
Generated from xinput.xml. If you've got corrections or improvements, hit up xcb@lists.freedesktop.org π§
and that's the whole page bestie, tysm for reading π«Άπ this lil' cutie came to you courtesy of X Version 11 and libxcb 1.17.0 β mwah, slay, bye β¨π
π¦ 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