xcb_get_atom_name(3)
β¨ xcb_get_atom_name β¨
okay bestie, so this is a page from libxcb, the C bindings for the X protocol β specifically the xcb_get_atom_name(3) request. it's giving "I need to know what the heck this atom is actually called" energy, and honestly? iconic. let's get into it π«Ά
πΈ NAME πΈ
xcb_get_atom_name β (the original manpage literally leaves this blank, so no cap, there is no one-line summary here. we're all just vibing off the title π)
π SYNOPSIS π
first things first, you gotta pull in the header:
#include <xcb/xproto.h>
Request function
xcb_get_atom_name_cookie_t xcb_get_atom_name(xcb_connection_t *conn,
xcb_atom_t atom);
Reply datastructure
typedef struct xcb_get_atom_name_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t name_len;
uint8_t pad1[22];
} xcb_get_atom_name_reply_t;
Reply function
xcb_get_atom_name_reply_t
*xcb_get_atom_name_reply(xcb_connection_t *conn,
xcb_get_atom_name_cookie_t cookie, xcb_generic_error_t **e);
Reply accessors
these are the little helper girlies that dig the actual name out of the reply:
char *xcb_get_atom_name_name(const xcb_get_atom_name_request_t *reply);
int xcb_get_atom_name_name_length(const xcb_get_atom_name_reply_t
*reply);
xcb_generic_iterator_t xcb_get_atom_name_name_end(const
xcb_get_atom_name_reply_t *reply);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. the whole line to the server, basically. keep it alive bestie π«Άatomβ TODO: NOT YET DOCUMENTED.</p> likeβ¦ the manpage itself is shrugging at us here. that's all it says. no notes. π
π¦ REPLY FIELDS π¦
response_typeβ what kind of reply this is, and in this case it'sXCB_GET_ATOM_NAME. it also lives in thexcb_generic_reply_t, which is the move when you've got a pile of replies and you're trying to tell which one is which. very "how do you do, fellow replies" of it.sequenceβ the sequence number of the last request the X11 server actually processed. basically the receipts β¨lengthβ how long the reply is, measured in words (and a word here is 4 bytes, periodt).name_lenβ TODO: NOT YET DOCUMENTED.</p> yeah. again. the docs said "not my job" π
π DESCRIPTION π
(the original page puts nothing here. zero. nada. a whole heading with no body. main character silence, honestly π)
π RETURN VALUE π
you get back an xcb_get_atom_name_cookie_t. and listen β errors? you don't deal with them here. they have to be handled when you call the reply function xcb_get_atom_name_reply.
but if you'd rather handle errors in the event loop instead, use xcb_get_atom_name_unchecked. peek xcb-requests(3) for the deets π
π₯ ERRORS π₯
this request does never generate any errors. zero. none. not a single one. slay β¨
π SEE ALSO π
(the original lists absolutely nothing here β it's an empty flex. no references, no crumbs, nothing to click. iykyk πΈ)
π AUTHOR π
Generated from xproto.xml. if you spot something wrong or wanna make it better, hit up xcb@lists.freedesktop.org for corrections and improvements π
and that's the whole page, bestie!! this one came to you from X Version 11, rocking libxcb 1.17.0, and it's filed under xcb_get_atom_name(3). go forth and name those atoms π
β¨π¦
π¦ 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