DOKK / manpages / debian 12 / libxv-dev / XvSelectPortNotify.3.en
XvSelectPortNotify(3) libXv Functions XvSelectPortNotify(3)

XvSelectPortNotify - enable or disable XvPortNotify events

#include <X11/extensions/Xvlib.h>

int XvSelectPortNotify(Display *dpy, XvPortID port, Bool onoff);

Specifies the connection to the X server.
Specifies the port for which PortNotify events are to be generated when its attributes are changed using XvSetPortAttribute(3)
Specifies whether notification is to be enabled or disabled.

XvSelectPortNotify(3) enables or disables PortNotify event delivery to the requesting client. XvPortNotify(3) events are generated when port attributes are changed using XvSetPortAttribute(3).

[Success]
Returned if XvSelectPortNotify(3) completed successfully.
[XvBadExtension]
Returned if the Xv extension is unavailable.
[XvBadAlloc]
Returned if XvSelectPortNotify(3) failed to allocate memory to process the request.

[XvBadPort]
Generated if the requested port does not exist.

XvSetPortNotify(3), XvSetPortAttribute(3), XvPortNotify(3)

libXv 1.0.11 X Version 11