XCB_GLX_GET_COLOR_TABLE_PARAMETERIV_REPLY(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xcb_glx_get_color_table_parameteriv β€” bestie edition πŸ’–

okay so this is a page from the XCB Requests manual, and the star of the show is xcb_glx_get_color_table_parameteriv(3). yes the name is a whole mouthful, we're gonna get through it together 🫢


✨ NAME ✨

xcb_glx_get_color_table_parameteriv β€” and that's it, that's the name. the original page leaves the description blank, so no cap, there's literally nothing more to say here πŸ’€


✨ SYNOPSIS ✨

first things first, you gotta pull in the header:

#include <xcb/glx.h>

🌸 Request function

xcb_glx_get_color_table_parameteriv_cookie_t
       xcb_glx_get_color_table_parameteriv(xcb_connection_t *conn,
       xcb_glx_context_tag_t context_tag, uint32_t target,
       uint32_t pname);

🌸 Reply datastructure

typedef struct xcb_glx_get_color_table_parameteriv_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint8_t  pad1[4];
    uint32_t n;
    int32_t  datum;
    uint8_t  pad2[12];
} xcb_glx_get_color_table_parameteriv_reply_t;

🌸 Reply function

xcb_glx_get_color_table_parameteriv_reply_t
       *xcb_glx_get_color_table_parameteriv_reply(xcb_connection_t *conn,
       xcb_glx_get_color_table_parameteriv_cookie_t cookie,
       xcb_generic_error_t **e);

🌸 Reply accessors

int32_t *xcb_glx_get_color_table_parameteriv_data(const
       xcb_glx_get_color_table_parameteriv_request_t *reply);

int xcb_glx_get_color_table_parameteriv_data_length(const
       xcb_glx_get_color_table_parameteriv_reply_t *reply);

xcb_generic_iterator_t
       xcb_glx_get_color_table_parameteriv_data_end(const
       xcb_glx_get_color_table_parameteriv_reply_t *reply);

✨ REQUEST ARGUMENTS ✨

  • conn β€” your XCB connection to X11. the whole vibe check with the X server goes through here, she's essential πŸ’…
  • context_tag β€” TODO: NOT YET DOCUMENTED. yeah bestie, the docs just said "we'll get to it", and they did not get to it πŸ™ˆ
  • target β€” TODO: NOT YET DOCUMENTED. same energy, still a mystery πŸŽ€
  • pname β€” TODO: NOT YET DOCUMENTED. three for three on the mystery box, iconic honestly 😭

✨ REPLY FIELDS ✨

  • response_type β€” the type of this reply, which in this case is XCB_GLX_GET_COLOR_TABLE_PARAMETERIV. this field is also chillin' in the xcb_generic_reply_t, and it's literally how you tell your replies apart from each other, so like, use it πŸ‘‘
  • sequence β€” the sequence number of the last request the X11 server processed. it's giving receipt tracking 🧾✨
  • length β€” the length of the reply, in words. and reminder that a word is 4 bytes, periodt πŸ“
  • n β€” TODO: NOT YET DOCUMENTED. yeah. again. πŸ’€
  • datum β€” TODO: NOT YET DOCUMENTED. the last of the mystery squad πŸ¦‹

✨ DESCRIPTION ✨

so... the original page has absolutely nothing under this heading. no description. empty. a blank space. and honestly? we respect the minimalism πŸ’œ


✨ RETURN VALUE ✨

you get back an xcb_glx_get_color_table_parameteriv_cookie_t. πŸͺ and bestie listen, errors do not come back here β€” you have to handle them when you call the reply function, xcb_glx_get_color_table_parameteriv_reply.

but if you'd rather handle your errors in the event loop instead? no stress, just use xcb_glx_get_color_table_parameteriv_unchecked. if you want the full tea on how that works, go read xcb-requests(3) 🫢


✨ ERRORS ✨

this request does never generate any errors. zero. none. a clean slate, a flawless queen 🌈

✨ SEE ALSO ✨

nothing here in the original, so nothing here from me either. a moment of silence 🀐


✨ AUTHOR ✨

this page was generated from glx.xml. if you wanna send corrections or improvements, hit up xcb@lists.freedesktop.org β€” they're literally taking notes πŸ“πŸ’–


and that's the whole page, bestie!! this little number came to you from X Version 11, running libxcb 1.17.0. go forth and query those color table parameters, you absolute icon πŸ‘‘βœ¨πŸ’