xcb_glx_get_color_table(3)
π xcb_glx_get_color_table β a lil' manual page, bestie
okay so this is a page from the xcb_glx fam (that's the XCB bindings to GLX, iykyk) π β it lives in the xcb_glx_get_color_table(3) part of the manual, and honestly? it's giving "generated from XML and we didn't write a description." no cap.
β¨ NAME β¨
xcb_glx_get_color_table β (and that's literally all the NAME section says, bestie, there's a whole dash and then nothing. iconic minimalism. π)
πΈ SYNOPSIS πΈ
First things first, you gotta include the header:
#include <xcb/glx.h>
π Request function
xcb_glx_get_color_table_cookie_t
xcb_glx_get_color_table(xcb_connection_t *conn,
xcb_glx_context_tag_t context_tag, uint32_t target,
uint32_t format, uint32_t type, uint8_t swap_bytes);
π¦ Reply datastructure
typedef struct xcb_glx_get_color_table_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint8_t pad1[8];
int32_t width;
uint8_t pad2[12];
} xcb_glx_get_color_table_reply_t;
π Reply function
xcb_glx_get_color_table_reply_t
*xcb_glx_get_color_table_reply(xcb_connection_t *conn,
xcb_glx_get_color_table_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors
uint8_t *xcb_glx_get_color_table_data(const
xcb_glx_get_color_table_request_t *reply);
int xcb_glx_get_color_table_data_length(const
xcb_glx_get_color_table_reply_t *reply);
xcb_generic_iterator_t xcb_glx_get_color_table_data_end(const
xcb_glx_get_color_table_reply_t *reply);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. the whole vibe pipeline, fr fr.context_tagβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs said "we'll get to it" and then never did πtargetβ TODO: NOT YET DOCUMENTED. mystery parameter, main character energy, zero backstory.formatβ TODO: NOT YET DOCUMENTED. we simply do not know.typeβ TODO: NOT YET DOCUMENTED. also a stranger to us.swap_bytesβ TODO: NOT YET DOCUMENTED. even the byte-swapping is a secret. π
not me listing six args and four of them are literally TODO. the XCB docs really said "figure it out." π
β REPLY FIELDS β
response_typeβ the type of this reply, and in this case it'sXCB_GLX_GET_COLOR_TABLE. this field also shows up in thexcb_generic_reply_t, so you can use it to tell replies apart from each other. it's like a little name tag at a party πsequenceβ the sequence number of the last request processed by the X11 server. tracking numbers but for requests, obsessed.lengthβ how long the reply is, in words. and yes bestie, a word here is 4 bytes. write that down.widthβ TODO: NOT YET DOCUMENTED. again!! the silence is loud. π
π«Ά DESCRIPTION π«Ά
...okay so the DESCRIPTION section is empty. nothing. void. a blank little space where the explanation should be. we are all just living in it. π
π₯ RETURN VALUE π₯
You get back an xcb_glx_get_color_table_cookie_t β a whole cookie, slay πͺ. Errors? Those have to be handled when you call the reply function xcb_glx_get_color_table_reply.
If you'd rather handle errors in the event loop instead, use xcb_glx_get_color_table_unchecked. See xcb-requests(3) for details.
πΈ ERRORS πΈ
This request does never generate any errors. no drama, no chaos, just peace and quiet β¨
π¦ SEE ALSO π¦
(the original leaves this one blank too β bestie really said "you'll find your way.")
π AUTHOR π
Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, bestie!! π this lil' slice of the manual is from X Version 11, shipping with libxcb 1.17.0 β so go forth, call your color table getter, and remember: four of those arguments are TODO and no one is coming to save us. 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