xcb_glx_get_lightiv(3)
π xcb_glx_get_lightiv π
okay bestie, welcome to the xcb_glx_get_lightiv page from the XCB Requests family, manual section 3. it's a lil GLX request, it's giving "ask the server about a light parameter and get integers back", and we're gonna walk through it together. no gatekeeping π
β¨ NAME β¨
xcb_glx_get_lightiv β the description line in the original is literally empty π so that's all we got, and we're keeping it that way, fr fr.
πΈ SYNOPSIS πΈ
first up, the include, because obviously:
#include <xcb/glx.h>
π Request function π
xcb_glx_get_lightiv_cookie_t xcb_glx_get_lightiv(xcb_connection_t *conn,
xcb_glx_context_tag_t context_tag, uint32_t light,
uint32_t pname);
π¦ Reply datastructure π¦
this is the struct the reply comes back in, look at her:
typedef struct xcb_glx_get_lightiv_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_lightiv_reply_t;
π Reply function π
xcb_glx_get_lightiv_reply_t
*xcb_glx_get_lightiv_reply(xcb_connection_t *conn,
xcb_glx_get_lightiv_cookie_t cookie, xcb_generic_error_t **e);
β Reply accessors β
these are the lil helpers that reach into the reply for you, iconic behaviour honestly:
int32_t *xcb_glx_get_lightiv_data(const xcb_glx_get_lightiv_request_t
*reply);
int xcb_glx_get_lightiv_data_length(const xcb_glx_get_lightiv_reply_t
*reply);
xcb_generic_iterator_t xcb_glx_get_lightiv_data_end(const
xcb_glx_get_lightiv_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. she's the link to the server, your main character connection π₯context_tagβ TODO: NOT YET DOCUMENTED. yeah. the docs said "we'll get to it" and then did not get to it πlightβ TODO: NOT YET DOCUMENTED. same energy, bestie πpnameβ TODO: NOT YET DOCUMENTED. the trio of mystery args, we love a cliffhanger π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_GLX_GET_LIGHTIV. plot twist: this field is also chillin' in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. very "which one of y'all is this" πsequenceβ the sequence number of the last request the X11 server actually processed. receipts! π§Ύlengthβ the length of the reply, measured in words. and just so we're clear: a word is 4 bytes. no cap πnβ TODO: NOT YET DOCUMENTED. π«Άdatumβ TODO: NOT YET DOCUMENTED. the second mystery of the reply, we stay guessing π
π§ DESCRIPTION π§
there is genuinely no description text in the original. empty. a void. the page said "description:" and then just β¨vibedβ¨. so we're not inventing one, that's the rules bestie πΈ
π RETURN VALUE π
you get back an xcb_glx_get_lightiv_cookie_t. cute, right? but here's the thing β errors are not handled here. you handle them later, when you call the reply function xcb_glx_get_lightiv_reply.
and if you'd rather handle errors in the event loop instead? then use xcb_glx_get_lightiv_unchecked. see xcb-requests(3) for the details, iykyk π«Ά
π ERRORS π
this request does never generate any errors. periodt. zero drama, zero errors, she's unproblematic π β¨
π SEE ALSO π
the original lists nothing here. an empty section, a blank canvas, we respect the minimalist queen π
π AUTHOR π
generated from glx.xml. got corrections or improvements? hit up xcb@lists.freedesktop.org β they're taking notes π
that's the whole page bestie, you ate it up π
X Version 11 Β· libxcb 1.17.0 Β· xcb_glx_get_lightiv(3) β signing off, love u, go read xcb-requests(3) ππ¦β¨
π¦ 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