xcb_glx_get_integerv(3)
π xcb_glx_get_integerv(3) β XCB Requests, bestie edition β¨
okay so. welcome to the group chat, this is xcb_glx_get_integerv from the XCB request fam, and yes it lives in section 3 of your manual, and yes I'm gonna walk you through every single crumb of it. π
πΈ NAME πΈ
xcb_glx_get_integerv β
not gonna lie, the original literally just has a dash here with nothing after it. the NAME section is giving mystery. π«Ά we move.
π¦ SYNOPSIS π¦
first things first, you gotta bring in the header, no cap:
#include <xcb/glx.h>
β¨ Request function β¨
xcb_glx_get_integerv_cookie_t
xcb_glx_get_integerv(xcb_connection_t *conn,
xcb_glx_context_tag_t context_tag, uint32_t pname);
that's the one you call, she hands you back a cookie, we love a cookie. πͺ
π Reply datastructure π
here's the whole reply struct, every field, exactly as written, no edits, periodt:
typedef struct xcb_glx_get_integerv_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_integerv_reply_t;
π Reply function π
xcb_glx_get_integerv_reply_t
*xcb_glx_get_integerv_reply(xcb_connection_t *conn,
xcb_glx_get_integerv_cookie_t cookie, xcb_generic_error_t **e);
π Reply accessors π
the lil helpers that go digging inside the reply for you:
int32_t *xcb_glx_get_integerv_data(const xcb_glx_get_integerv_request_t
*reply);
int xcb_glx_get_integerv_data_length(const xcb_glx_get_integerv_reply_t
*reply);
xcb_generic_iterator_t xcb_glx_get_integerv_data_end(const
xcb_glx_get_integerv_reply_t *reply);
β οΈ yes,xcb_glx_get_integerv_datatakes anxcb_glx_get_integerv_request_t *while the other two take the reply type. that's literally what the manual says, so that's literally what you get. don't come for me, I'm just the messenger π
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, iconic.context_tagβ TODO: NOT YET DOCUMENTED. bestie the docs simply did not show up. πpnameβ TODO: NOT YET DOCUMENTED. same vibe, same empty plate. π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_GLX_GET_INTEGERV. this field is also chillin' in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. main character identification energy. πsequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, in words (and a word is 4 bytes, fyi, iykyk).nβ TODO: NOT YET DOCUMENTED. π«datumβ TODO: NOT YET DOCUMENTED. π«
β¨ DESCRIPTION β¨
okay so this section is, and I cannot stress this enough, completely empty in the original. nothing. a void. a vibe check that returned zero results. π
π«Ά RETURN VALUE π«Ά
you get back an xcb_glx_get_integerv_cookie_t. errors? you gotta handle those yourself when you call the reply function xcb_glx_get_integerv_reply. that's the deal, fr fr.
and if you'd rather handle errors in the event loop instead, use xcb_glx_get_integerv_unchecked. peek xcb-requests(3) for the deets. π
π ERRORS π
this request does never generate any errors. not one. zero. she's unproblematic, she's chill, she's lowkey perfect. πΈ
π₯ SEE ALSO π₯
yeah... this one's empty too. no cross-references, no links, no crumbs. the SEE ALSO section is standing there in silence. πΆπ«οΈ
π AUTHOR π
Generated from glx.xml. got corrections or improvements? contact xcb@lists.freedesktop.org and they'll sort you out. π§
and that's the whole page, bestie!! π
signing off from X Version 11, rocking libxcb 1.17.0, on the xcb_glx_get_integerv(3) manual page β stay glxy, stay hydrated, and remember: the TODO sections are not your fault. π§β¨ππ¦
π¦ 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