XvSelectPortNotify(3)
π XvSelectPortNotify β the libXv glow-up your port notifications needed
okay bestie, welcome to XvSelectPortNotify(3), a lil function from the libXv family (that's the X Video Extension library, for the uninitiated π). She does one thing and she does it well: turning XvPortNotify events on and off. That's it. That's the girl. β¨
β¨ NAME β¨
XvSelectPortNotify β enable or disable XvPortNotify events π
πΈ SYNOPSIS πΈ
#include <X11/extensions/Xvlib.h>
int XvSelectPortNotify(Display *dpy, XvPortID port, Bool onoff);
π¦ ARGUMENTS π¦
dpyβ your connection to the X server. the group chat, basically. you gotta be plugged in to talk. πportβ the specific port you're obsessed with. this is the port that'll start generatingPortNotifyevents whenever its attributes get changed viaXvSetPortAttribute(3). πonoffβ the switch. are we enabling the notification or disabling it?Bool, so it's giving true/false energy. no in-between. π
π§ DESCRIPTION π§
so like, XvSelectPortNotify(3) enables or disables PortNotify event delivery to the client that's asking. that's the whole vibe.
and when do those events actually show up? XvPortNotify(3) events get generated whenever port attributes are changed using XvSetPortAttribute(3). so if you want the receipts when someone messes with your port's attributes, this is the function you call first. periodt. β¨
π RETURN VALUES π
[Success]β returned ifXvSelectPortNotify(3)completed successfully. slay, we love a clean run. π[XvBadExtension]β returned if the Xv extension is unavailable. π the extension ghosted you.[XvBadAlloc]β returned ifXvSelectPortNotify(3)failed to allocate memory to process the request. she's out of RAM, bestie. π
π DIAGNOSTICS π
[XvBadPort]β generated if the requested port does not exist. that port is not real, girl. it never was. π
π SEE ALSO π
XvSetPortNotify(3)XvSetPortAttribute(3)XvPortNotify(3)
ngl, if you're here you probably also want XvSetPortAttribute(3) β that's the one actually triggering the events you're signing up for. iykyk. π
okay that's the whole page, you ate it up, go forth and notify responsibly π«Ά
this was brought to you by X Version 11, specifically libXv 1.0.13 β stay iconic, stay compiled, and don't forget to #include <X11/extensions/Xvlib.h> bestie πβ¨
π¦ where this page comes from
- alpine 3.22: libxv-doc 1.0.13-r0 Β· MIT
- alpine 3.23: libxv-doc 1.0.13-r0 Β· MIT
- alpine 3.24: libxv-doc 1.0.13-r0 Β· MIT
- arch rolling: libxv 1.0.13-1 Β· SMLNJ AND HPND-sell-variant
- fedora 43: libXv-devel 1.0.13-3.fc43 Β· SMLNJ AND HPND-sell-variant
- fedora 43: libXv-devel 1.0.13-3.fc43 Β· SMLNJ AND HPND-sell-variant
- fedora 44: libXv-devel 1.0.13-4.fc44 Β· SMLNJ AND HPND-sell-variant
- fedora 44: libXv-devel 1.0.13-4.fc44 Β· SMLNJ AND HPND-sell-variant
- ubuntu resolute: libxv-dev 2:1.0.13-1 Β· MIT
- ubuntu stonking: libxv-dev 2:1.0.13-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms