xcb_xv_query_extension(3)
π« xcb_xv_query_extension β bestie, it's the X11 extension query, but make it XCB β¨
okay so real talk: this is xcb_xv_query_extension(3), a request from the XCB Requests family, and it lives in the X protocol bindings crew (libxcb). It asks the X server about the Xv extension β you know, the video one. It's giving "hello?? are you there?? which version are we on??" energy, and honestly? Iconic.
Fair warning though: the NAME line in the original is literally just the function name with a dangling dash and nothing after it, and the DESCRIPTION section is a total ghost town. Not me covering for the docs β I'm telling you exactly what's there, no cap. π
π SYNOPSIS π
First up, the include, because you always gotta bring your header:
#include <xcb/xv.h>
π Request function
xcb_xv_query_extension_cookie_t
xcb_xv_query_extension(xcb_connection_t *conn,
(Yes, bestie, that's exactly how it's written in the original β it trails off mid-signature like a text you sent at 2am. I'm not gonna invent the rest. π«Ά)
π¦ Reply datastructure
This is the struct you get back, and she is structured:
typedef struct xcb_xv_query_extension_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t major;
uint16_t minor;
} xcb_xv_query_extension_reply_t;
πΈ Reply function
xcb_xv_query_extension_reply_t
*xcb_xv_query_extension_reply(xcb_connection_t *conn,
xcb_xv_query_extension_cookie_t cookie, xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ The XCB connection to X11. She's the whole line to the server, the main character, the one you pass everywhere. Periodt.
β¨ REPLY FIELDS β¨
response_typeβ The type of this reply, and in this case it'sXCB_XV_QUERY_EXTENSION. This field is also present in thexcb_generic_reply_t, so you can use it to tell replies apart from each other. It's like a name tag at a party where everyone looks identical. πsequenceβ The sequence number of the last request processed by the X11 server. Basically the server's "and that was request #whatever, bestie."lengthβ The length of the reply, in words. And heads up: a word here is 4 bytes. Don't @ me, that's just the math. π₯majorβ TODO: NOT YET DOCUMENTED. The original really said "we'll get to it." πminorβ TODO: NOT YET DOCUMENTED. Same vibe, same silence. π
π DESCRIPTION π
Soβ¦ the original manpage has a DESCRIPTION heading and then absolutely nothing under it. Empty. Void. The group chat went quiet. I'm not gonna make stuff up to fill it, because that would be lying to you, and we don't do that. π
π RETURN VALUE π
You get back an xcb_xv_query_extension_cookie_t. That's your little claim ticket β the reply hasn't come home yet.
Errors have to be handled when you call the reply function, xcb_xv_query_extension_reply. That's where the truth comes out.
If you'd rather handle errors in the event loop instead, use xcb_xv_query_extension_unchecked. See xcb-requests(3) for details. Lowkey essential reading, fr fr.
π§ ERRORS π§
This request does never generate any errors. Zero. None. She's unproblematic. β¨
β SEE ALSO β
Nothing listed. The original left this section empty, so I'm leaving it empty too β I'm not about to manifest fake cross-references into existence. πΈ
π AUTHOR π
Generated from xv.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. Yes, that's the real email β send your glow-up suggestions there. π
Heads up bestie: the missing NAME description, the empty DESCRIPTION, and the two TODO: NOT YET DOCUMENTED fields are all straight from the source. That's not me being lazy, that's me being honest. Slay responsibly. π
And that's the whole page, no cap β from X Version 11, libxcb 1.17.0, xcb_xv_query_extension(3). Thanks for reading, ily, go handle your errors. π«Άπ¦
π¦ 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