xcb_glx_query_context(3)
π xcb_glx_query_context π
okay bestie, welcome to the xcb_glx_query_context page from the XCB Requests fam β this is the part of the libxcb manual where we ask the X server "hey girl, what's up with this GLX context?" β¨
πΈ NAME πΈ
xcb_glx_query_context β
yes the NAME section is literally just vibes and a dash, the original said nothing more and I'm not about to make stuff up π
β¨ SYNOPSIS β¨
First things first, you gotta bring in the header:
#include <xcb/glx.h>
π Request function
xcb_glx_query_context_cookie_t
xcb_glx_query_context(xcb_connection_t *conn,
xcb_glx_context_t context);
π Reply datastructure
typedef struct xcb_glx_query_context_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t num_attribs;
uint8_t pad1[20];
} xcb_glx_query_context_reply_t;
π Reply function
xcb_glx_query_context_reply_t
*xcb_glx_query_context_reply(xcb_connection_t *conn,
xcb_glx_query_context_cookie_t cookie, xcb_generic_error_t **e);
π Reply accessors
uint32_t *xcb_glx_query_context_attribs(const
xcb_glx_query_context_request_t *reply);
int xcb_glx_query_context_attribs_length(const
xcb_glx_query_context_reply_t *reply);
xcb_generic_iterator_t xcb_glx_query_context_attribs_end(const
xcb_glx_query_context_reply_t *reply);
π¦ REQUEST ARGUMENTS π¦
connβ the XCB connection to X11, aka your lil hotline to the server πcontextβ TODO: NOT YET DOCUMENTED. yeah babe, the docs simply did not show up to class that day π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_GLX_QUERY_CONTEXT. This field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other, like name tags at a party πsequenceβ the sequence number of the last request processed by the X11 server. it's giving receipt energy π§Ύlengthβ the length of the reply, in words. and bestie, a word is 4 bytes, don't forget it πnum_attribsβ TODO: NOT YET DOCUMENTED. another mystery box, we love that for us π
π DESCRIPTION π
okay so this section is literally empty in the original. nothing. a void. a blank space. the manpage said β¨nothingβ¨ and I'm respecting the canon π«Ά
β RETURN VALUE β
It hands you back an xcb_glx_query_context_cookie_t. πͺ
Errors? You don't deal with those here, babe β you handle them when you call the reply function xcb_glx_query_context_reply.
And if you'd rather handle errors in the event loop instead, use xcb_glx_query_context_unchecked. See xcb-requests(3) for the deets. iykyk β¨
π₯ ERRORS π₯
This request does never generate any errors. not a single one. she's unproblematic. she's the moment. periodt π
π SEE ALSO π
the SEE ALSO section is empty in the original, no references were given, no crumbs left behind π
π AUTHOR π
Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. π
okay that's the whole page bestie!! this one's from X Version 11, shipping with libxcb 1.17.0 β go forth and query those contexts, you absolute icon π β¨π¦πΈπ
π¦ 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