xcb_get_keyboard_mapping(3)
π xcb_get_keyboard_mapping β a lil' XCB request, bestie π
okay so we're in the xcb_get_keyboard_mapping(3) girlies' section of the manual, part of XCB Requests (that's the libxcb squad, X Version 11 energy). she has no tagline in the NAME line, she's mysterious like that. let's get into it π
β¨ NAME β¨
xcb_get_keyboard_mapping β and honestly? the original left the description blank. iconic silent queen behavior, we respect it π
πΈ SYNOPSIS πΈ
first up, the include, don't forget her:
#include <xcb/xproto.h>
π¦ Request function
xcb_get_keyboard_mapping_cookie_t
xcb_get_keyboard_mapping(xcb_connection_t *conn,
xcb_keycode_t first_keycode, uint8_t count);
π¦ Reply datastructure
typedef struct xcb_get_keyboard_mapping_reply_t {
uint8_t response_type;
uint8_t keysyms_per_keycode;
uint16_t sequence;
uint32_t length;
uint8_t pad0[24];
} xcb_get_keyboard_mapping_reply_t;
π¦ Reply function
xcb_get_keyboard_mapping_reply_t
*xcb_get_keyboard_mapping_reply(xcb_connection_t *conn,
xcb_get_keyboard_mapping_cookie_t cookie,
xcb_generic_error_t **e);
π¦ Reply accessors
these are the lil' helper besties that go digging inside the reply for you:
xcb_keysym_t *xcb_get_keyboard_mapping_keysyms(const
xcb_get_keyboard_mapping_request_t *reply);
int xcb_get_keyboard_mapping_keysyms_length(const
xcb_get_keyboard_mapping_reply_t *reply);
xcb_generic_iterator_t xcb_get_keyboard_mapping_keysyms_end(const
xcb_get_keyboard_mapping_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. she's the whole line to the server, noconnno vibes π«Άfirst_keycodeβTODO: NOT YET DOCUMENTED.yeah bestie, even the manual is like "idk yet" π the lore is still loading.countβ alsoTODO: NOT YET DOCUMENTED.same energy, same mystery, we move π
β REPLY FIELDS β
response_typeβ the type of this reply, in this caseXCB_GET_KEYBOARD_MAPPING. this field is also chillin' inside thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. main character identifier energy πsequenceβ the sequence number of the last request the X11 server processed. it's giving receipt π§Ύlengthβ the length of the reply, in words. and lowkey important: a word is 4 bytes, don't forget that math bestie π₯keysyms_per_keycodeβTODO: NOT YET DOCUMENTED.yep. another one. the docs really said "not today" π
π DESCRIPTION π
so... the DESCRIPTION section is literally empty. not a single word. she said nothing and left β¨ we simply respect the silence.
π RETURN VALUE π
Returns an xcb_get_keyboard_mapping_cookie_t. and here's the tea: errors have to be handled when you call the reply function xcb_get_keyboard_mapping_reply.
if you'd rather handle errors in the event loop instead, use xcb_get_keyboard_mapping_unchecked. see xcb-requests(3) for the details, bestie, she explains the whole cookie situation πͺ
π ERRORS π
This request does never generate any errors. not a one. zero drama, zero errors, absolute peace and quiet. obsessed π
π§ SEE ALSO π§
...nothing listed. empty. a blank little space where the references would go. it's giving minimalism π
π AUTHOR π
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. so if something's off, that's the inbox, fr fr π«Ά
okay and for the cute sign-off: this whole thing lives under X Version 11, shipped with libxcb 1.17.0, and it's the xcb_get_keyboard_mapping(3) page. that's the footer, that's the vibe, thanks for coming to my ted talk, bye bestie πβ¨π¦πΈπ
π¦ 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