xcb_dbe_query_version(3)
π xcb_dbe_query_version β the vibe check for your extension
okay bestie, so this is xcb_dbe_query_version, from the <xcb/dbe.h> header β it's the little function that asks the X server hey, what version of the DBE extension are you even running? and honestly? it's giving responsible coder energy. π
β¨ SYNOPSIS β¨
first, the include, because we don't gatekeep:
#include <xcb/dbe.h>
πΈ Request function
xcb_dbe_query_version_cookie_t
xcb_dbe_query_version(xcb_connection_t *conn,
uint8_t major_version, uint8_t minor_version);
π¦ Reply datastructure
typedef struct xcb_dbe_query_version_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint8_t major_version;
uint8_t minor_version;
uint8_t pad1[22];
} xcb_dbe_query_version_reply_t;
π§ Reply function
xcb_dbe_query_version_reply_t
*xcb_dbe_query_version_reply(xcb_connection_t *conn,
xcb_dbe_query_version_cookie_t cookie, xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11, the whole reason we're here. π«major_versionβ the major version of the extension you're asking about. Bestie, pls check that it's compatible with theXCB_DBE_MAJOR_VERSIONyour code was compiled with. like, actually check it. πminor_versionβ same deal but minor. Check it plays nice with theXCB_DBE_MINOR_VERSIONthat your code is compiled with. β
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_DBE_QUERY_VERSION. It's also chillin' in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. no confusion, periodt. πsequenceβ the sequence number of the last request the X11 server actually processed. β±οΈlengthβ how long the reply is, in words. and yes, a word is 4 bytes, that's just the lore. π₯major_versionβ TODO: NOT YET DOCUMENTED. (not me leaving it as-is, it's literally what the page says π)minor_versionβ TODO: NOT YET DOCUMENTED. (same energy, same honesty π)
π DESCRIPTION π
Queries the version of this extension. That's it, that's the function.
But here's the important bit, and I mean it: you must do this before using any functionality it provides. Like, this is the pre-req, the entry ticket, the vibe check before the main event. skip it and you're on your own. π«Ά
β RETURN VALUE β
It hands you back an xcb_dbe_query_version_cookie_t. Cookies are cute but they're not the whole answer β errors have to be handled when you call the reply function, xcb_dbe_query_version_reply.
If you'd rather handle errors in the event loop instead, use xcb_dbe_query_version_unchecked. See xcb-requests(3) for the deets. π
π ERRORS π
This request does never generate any errors. iconic behaviour honestly, zero drama. β¨
π SEE ALSO π
π AUTHOR π
Generated from dbe.xml. Contact xcb@lists.freedesktop.org for corrections and improvements β they're literally taking suggestions, bestie. π«Ά
and that's the whole page!! this came to you from X Version 11, libxcb 1.17.0, and the manual page known as xcb_dbe_query_version(3). tysm for reading, go query that version, slay, and remember: check your versions before you ship πβ¨
π¦ 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