xcb_glx_get_fb_configs(3)
π xcb_glx_get_fb_configs π
okay bestie, gather round, because today we're reading the manual page for xcb_glx_get_fb_configs from the XCB Requests collection, and it's giving "niche GLX knowledge, main character energy" β¨
This is the one that asks the X server for its framebuffer configs β you know, the GLX ones. If you've ever wondered what your X connection thinks it can render into, this is that request. π¦
β¨ SYNOPSIS β¨
First things first, you gotta pull in the header, no cap:
#include <xcb/glx.h>
π Request function
xcb_glx_get_fb_configs_cookie_t
xcb_glx_get_fb_configs(xcb_connection_t *conn, uint32_t screen);
π Reply datastructure
typedef struct xcb_glx_get_fb_configs_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t num_FB_configs;
uint32_t num_properties;
uint8_t pad1[16];
} xcb_glx_get_fb_configs_reply_t;
π Reply function
xcb_glx_get_fb_configs_reply_t
*xcb_glx_get_fb_configs_reply(xcb_connection_t *conn,
xcb_glx_get_fb_configs_cookie_t cookie, xcb_generic_error_t **e);
π Reply accessors
uint32_t *xcb_glx_get_fb_configs_property_list(const
xcb_glx_get_fb_configs_request_t *reply);
int xcb_glx_get_fb_configs_property_list_length(const
xcb_glx_get_fb_configs_reply_t *reply);
xcb_generic_iterator_t xcb_glx_get_fb_configs_property_list_end(const
xcb_glx_get_fb_configs_reply_t *reply);
πΈ REQUEST ARGUMENTS πΈ
connβ the XCB connection to X11. your lil phone line to the X server, basically πscreenβTODO: NOT YET DOCUMENTED.yeah bestie, the docs literally did not show up to class that day π the original page just saysTODO: NOT YET DOCUMENTED.and I am not about to make something up, that's not the vibe.
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_GLX_GET_FB_CONFIGS. it also lives in thexcb_generic_reply_t, so you can use it to tell replies apart from each other πsequenceβ the sequence number of the last request processed by the X11 server. it's the receipt, fr fr π§Ύlengthβ how long the reply is, measured in words. and a word is 4 bytes, bestie, don't forget, this trips people up every single time πnum_FB_configsβTODO: NOT YET DOCUMENTED.again, not a single word from the original πnum_propertiesβTODO: NOT YET DOCUMENTED.same situation, we simply do not know and I refuse to speculate π«Ά
π¦ DESCRIPTION π¦
The original page's DESCRIPTION section is... empty. like, completely. nothing. a blank little void where the explanation should be π So we vibe with what we've got: the request, the reply struct, the fields, and the accessors up above. That's the whole story this page is telling.
β RETURN VALUE β
You get back an xcb_glx_get_fb_configs_cookie_t. and listen, the errors? they don't come at you right away β you handle them when you call the reply function, xcb_glx_get_fb_configs_reply π
If you'd rather handle your errors in the event loop instead, use xcb_glx_get_fb_configs_unchecked. That's the move for the async girlies. Peep xcb-requests(3) for all the details on how that works π
π ERRORS π
This request never generates any errors. zero. none. not one. it's an angel π no error handling required, you can just breathe.
π₯ SEE ALSO π₯
The SEE ALSO section is empty on the original page β no cross-references, no friends, just this page standing alone like the icon it is π
π AUTHOR π
Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements π
and that's the whole page, bestie!! no cap, you now know everything this manual page knows πβ¨
X Version 11 Β· libxcb 1.17.0 β mwah, go forth and get those framebuffer configs, you absolute legend π πΈπ¦
π¦ 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