XvSelectPortNotify(3)

πŸ“¦
version 1.0.13 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’… 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 generating PortNotify events whenever its attributes get changed via XvSetPortAttribute(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 if XvSelectPortNotify(3) completed successfully. slay, we love a clean run. πŸŽ€
  • [XvBadExtension] β€” returned if the Xv extension is unavailable. 😭 the extension ghosted you.
  • [XvBadAlloc] β€” returned if XvSelectPortNotify(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 πŸ‘‘


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