xcb_query_keymap(3)
π
xcb_query_keymap β from the xcb manual, section 3 π
okay bestie, so this is a page from the XCB requests manual, aka the thing that lets you talk to your X11 server without losing your whole entire mind. buckle up, we're querying a keymap and it's lowkey iconic β¨
πΈ NAME πΈ
xcb_query_keymap β (yes the description here is literally blank in the original, she's mysterious, she's giving nothing and everything π)
π¦ SYNOPSIS π¦
First things first, you gotta include the header:
#include <xcb/xproto.h>
β¨ Request function β¨
xcb_query_keymap_cookie_t xcb_query_keymap(xcb_connection_t *conn,
not me noticing the original literally trails off mid-signature π but that's exactly what it says, so that's exactly what you get, no cap
π Reply datastructure π
typedef struct xcb_query_keymap_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint8_t keys[32];
} xcb_query_keymap_reply_t;
π«Ά Reply function π«Ά
xcb_query_keymap_reply_t *xcb_query_keymap_reply(xcb_connection_t *conn,
xcb_query_keymap_cookie_t cookie, xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, she's the main character fr fr π
β REPLY FIELDS β
response_typeβ the type of this reply, and in this case it'sXCB_QUERY_KEYMAP. this field also lives insidexcb_generic_reply_t, so you can use it to tell your replies apart from each other. it's giving name tag at a party πsequenceβ the sequence number of the last request processed by the X11 server. keeping receipts, periodt πlengthβ the length of the reply, in words. and heads up bestie, a word is 4 bytes around here. do not forget that or you WILL be confused later πkeysβTODO: NOT YET DOCUMENTED.yeah babe, the docs said "we'll get to it" and then never got to it π
π DESCRIPTION π
this section is empty in the original. nothing. void. a whole vibe check that returned no results π¦
π₯ RETURN VALUE π₯
Returns an xcb_query_keymap_cookie_t. the tea is: errors have to be handled when you call the reply function, xcb_query_keymap_reply. so handle them, bestie, don't be out here ignoring your errors π
If you'd rather handle errors in the event loop instead, use xcb_query_keymap_unchecked. and if you want the full lore on how requests work, go read xcb-requests(3), it's required reading, iykyk π
π ERRORS π
This request does never generate any errors.
like, none. zero. she's perfect, she's unproblematic, she has never once caused drama πΈ (respectfully, enjoy it while it lasts)
π SEE ALSO π
this section is empty in the original. no references, no friends, just vibes π
π§ AUTHOR π§
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. so if something's wrong, that's the inbox, don't @ me π
okay that's the whole page!! this came out of the X Version 11 line, libxcb 1.17.0, and if you ever need her again she lives at xcb_query_keymap(3). slay, go forth, query those keymaps πβ¨π
π¦ 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