xcb_xv_select_port_notify(3)
π xcb_xv_select_port_notify π
okay bestie, we're in the XCB Requests section of the manual, and today's main character is xcb_xv_select_port_notify(3). yes the header says it twice, it's just that iconic. π
β¨ NAME β¨
soβ¦ the NAME field is literally blank. like, empty empty. nobody wrote a one-liner here. it's giving mystery. it's giving "the function speaks for itself". we move. π¦
πΈ SYNOPSIS πΈ
first you gotta bring the header in:
#include <xcb/xv.h>
π Request function
xcb_void_cookie_t xcb_xv_select_port_notify(xcb_connection_t *conn,
xcb_xv_port_t port, uint8_t onoff);
that's the whole vibe. one function, three args, no notes. β¨
π«Ά REQUEST ARGUMENTS π«Ά
connβ your XCB connection to X11. it's the link to the server, the group chat you're sending messages into. πportβ TODO: NOT YET DOCUMENTED. yeah. the docs said "later" and then never came back. πonoffβ TODO: NOT YET DOCUMENTED. same energy fr fr. the manual is keeping secrets. π
not me pointing out that two of the three arguments are literally undocumented β i'm just telling you what the page says, no cap. π
π DESCRIPTION π
β¦and the DESCRIPTION section is empty too. nothing. nada. zero words. the page really said "figure it out, bestie" and dipped. π
β RETURN VALUE β
it hands you back an xcb_void_cookie_t. π and here's the important part: errors (if any) have to be handled in the event loop. so you don't get them shoved in your face right away β they show up later, in the loop.
but if you do wanna handle errors directly with xcb_request_check instead? then use xcb_xv_select_port_notify_checked. that's your girl for the direct route. β¨
peep xcb-requests(3) for all the details, iykyk.
π ERRORS π
this request does never generate any errors.
not "rarely". not "sometimes". never. slay. π₯
π SEE ALSO π
nothing here. the SEE ALSO is empty, bestie. no cross-references, no friends, just vibes. π¦
π AUTHOR π
Generated from xv.xml. if you spotted something wrong and wanna help fix it, hit up xcb@lists.freedesktop.org for corrections and improvements. they're nice, promise. π«Ά
and that's the whole page, gorgeous. this lil doc came to you courtesy of X Version 11 and libxcb 1.17.0 β go forth and select your port notifications, main character. π β¨πΈ
π¦ 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