xcb_xv_get_port_attribute(3)
π xcb_xv_get_port_attribute π
okay bestie, so this is a page from the XCB Requests manual (section 3, the library-call girlies π«Ά). It's literally called xcb_xv_get_port_attribute and yes, we're gonna go through every single line together. no skimming, no skipping, we're doing this properly. periodt. β¨
πΈ NAME πΈ
xcb_xv_get_port_attribute β and that's it. That's the whole description. The original just leaves it hanging there after the dash, like a text you sent at 2am and never finished. the vibes are mysterious, ngl.
π¦ SYNOPSIS π¦
First things first, you gotta pull in the header:
#include <xcb/xv.h>
β¨ Request function β¨
xcb_xv_get_port_attribute_cookie_t
xcb_xv_get_port_attribute(xcb_connection_t *conn,
xcb_xv_port_t port, xcb_atom_t attribute);
π Reply datastructure π
here's the lil struct the reply comes back in, look at her:
typedef struct xcb_xv_get_port_attribute_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
int32_t value;
} xcb_xv_get_port_attribute_reply_t;
π§ Reply function π§
xcb_xv_get_port_attribute_reply_t
*xcb_xv_get_port_attribute_reply(xcb_connection_t *conn,
xcb_xv_get_port_attribute_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
the tea on what you're feeding this function:
connβ your XCB connection to X11. the whole reason we're here, honestly.portβ TODO: NOT YET DOCUMENTED. π like, the docs simply did not show up to class that day.attributeβ TODO: NOT YET DOCUMENTED. same energy. we know nothing. it's giving mystery box. π¦
β REPLY FIELDS β
what comes back in the struct, one field at a time:
response_typeβ the type of this reply, and in this case it'sXCB_XV_GET_PORT_ATTRIBUTE. this field is also chilling inside thexcb_generic_reply_t, which is how you tell replies apart from each other. very main character, very useful. πsequenceβ the sequence number of the last request the X11 server processed. it's the receipt number of the server world. π§Ύlengthβ how long the reply is, measured in words. and heads up, bestie: one word = 4 bytes. π don't forget that, it will get you.valueβ TODO: NOT YET DOCUMENTED. the docs really said "Β―\_(γ)_/Β―" on this one.
π DESCRIPTION π
so... there is genuinely nothing here. the original DESCRIPTION section is empty. it's an empty section, standing there, looking cute, saying absolutely nothing. iconic honestly. π
π RETURN VALUE π
You get back an xcb_xv_get_port_attribute_cookie_t. Errors have to be handled when you call the reply function, xcb_xv_get_port_attribute_reply. that's the moment of truth, no cap. πͺ
But if you'd rather handle your errors in the event loop instead (valid!! different strokes!!), use xcb_xv_get_port_attribute_unchecked and peep xcb-requests(3) for the details.
π₯ ERRORS π₯
This request does never generate any errors. literally never. not a single one. she's drama-free, she's unbothered, she's at peace. πβ¨
π«Ά SEE ALSO π«Ά
nothing here either. empty. a whole section with no friends. we still love her. π
π AUTHOR π
Generated from xv.xml. If you've got corrections or improvements, hit up xcb@lists.freedesktop.org. be nice, they're doing their best. π
okay that's the whole page, bestie, you're officially smarter than you were five minutes ago and that's on growth. π
sourced from X Version 11, libxcb 1.17.0, and filed under xcb_xv_get_port_attribute(3) β mwah, go slay. πβ¨ππ¦
π¦ 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