xcb_input_get_device_control(3)
π xcb_input_get_device_control β the libxcb XCB Requests girlie π
okay so bestie, we're doing the xcb_input_get_device_control(3) page today and honestly? it's giving β¨mysteryβ¨ because half the fields are literally "TODO: NOT YET DOCUMENTED" and I'm not gonna pretend otherwise. no cap. we keep it real around here. π«Ά
πΈ NAME πΈ
xcb_input_get_device_control β and that's it, that's the whole name section. the original page left the description blank after the dash, so we're leaving it blank too. iconic minimalism, I guess. π
β¨ SYNOPSIS β¨
first up, you gotta pull in the header, obviously:
#include <xcb/xinput.h>
π Request function π
xcb_input_get_device_control_cookie_t
xcb_input_get_device_control(xcb_connection_t *conn,
uint16_t control_id, uint8_t device_id);
π¦ Reply datastructure π¦
typedef struct xcb_input_get_device_control_reply_t {
uint8_t response_type;
uint8_t xi_reply_type;
uint16_t sequence;
uint32_t length;
uint8_t status;
uint8_t pad0[23];
} xcb_input_get_device_control_reply_t;
π§ Reply function π§
xcb_input_get_device_control_reply_t
*xcb_input_get_device_control_reply(xcb_connection_t *conn,
xcb_input_get_device_control_cookie_t cookie,
xcb_generic_error_t **e);
β Reply accessors β
xcb_input_device_state_t *xcb_input_get_device_control_control (const
xcb_input_get_device_control_request_t *reply)
π REQUEST ARGUMENTS π
connβ the XCB connection to X11, aka your lil phone line to the server. πcontrol_idβ TODO: NOT YET DOCUMENTED. yeah. the docs said "we'll get to it". they did not get to it. πdevice_idβ TODO: NOT YET DOCUMENTED. same energy, bestie. the lore is simply not there yet. π
π₯ REPLY FIELDS π₯
response_typeβ the type of this reply, which in this case isXCB_INPUT_GET_DEVICE_CONTROL. this field is also hanging out in thexcb_generic_reply_t, and you can use it to tell replies apart from each other. it's literally the name tag at the party. πsequenceβ the sequence number of the last request processed by the X11 server. the receipts of the convo. π§Ύlengthβ the length of the reply, in words (and a word is 4 bytes, so don't come for me with your 8-bit assumptions). πxi_reply_typeβ TODO: NOT YET DOCUMENTED. π«statusβ TODO: NOT YET DOCUMENTED. we simply do not know and we are not gonna make it up. periodt. π
π DESCRIPTION π
...and there's nothing here! the original DESCRIPTION section is empty. a vibe with no words. we respect it. β¨
π RETURN VALUE π
it hands you back an xcb_input_get_device_control_cookie_t. and listen, errors have to be handled when you call the reply function xcb_input_get_device_control_reply. that's not optional, that's the whole assignment. π―
but if you'd rather handle errors in the event loop instead, use xcb_input_get_device_control_unchecked β see xcb-requests(3) for the deets. π«Ά
πΈ ERRORS πΈ
This request does never generate any errors. π
not a single one. zero. no error girlies allowed at this function's party. π
π SEE ALSO π
(nothing listed β the original page left this one empty, so we're honoring the silence. π€«)
π AUTHOR π
Generated from xinput.xml. contact xcb@lists.freedesktop.org for corrections and improvements β they're literally asking for your notes, bestie, so if you know what status does, TELL THEM. π¬
okay that's the whole page, and now the lil sign-off moment: this came from X Version 11, libxcb 1.17.0, and it's the xcb_input_get_device_control(3) page π slay, go forth and query those device controls, mwah ππ¦β¨
π¦ 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