XvSelectPortNotify(3) libXv Functions XvSelectPortNotify(3)

# [NAME](#NAME)

XvSelectPortNotify - enable or disable XvPortNotify events

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;X11/extensions/Xvlib.h&gt;**

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

# [ARGUMENTS](#ARGUMENTS)

[*dpy*](#dpy)

Specifies the connection to the X server.

[*port*](#port)

Specifies the port for which PortNotify events are to be generated when its attributes are changed using [**XvSetPortAttribute**(3)](/man/os/libxv/XvSetPortAttribute.3)

[*onoff*](#onoff)

Specifies whether notification is to be enabled or disabled.

# [DESCRIPTION](#DESCRIPTION)

[**XvSelectPortNotify**(3)](/man/os/libxv/XvSelectPortNotify.3) enables or disables PortNotify event delivery to the requesting client. [**XvPortNotify**(3)](/man/os/libxv/XvPortNotify.3) events are generated when port attributes are changed using [**XvSetPortAttribute**(3)](/man/os/libxv/XvSetPortAttribute.3).

# [RETURN VALUES](#RETURN_VALUES)

\[Success]

Returned if [**XvSelectPortNotify**(3)](/man/os/libxv/XvSelectPortNotify.3) completed successfully.

\[XvBadExtension]

Returned if the Xv extension is unavailable.

\[XvBadAlloc]

Returned if [**XvSelectPortNotify**(3)](/man/os/libxv/XvSelectPortNotify.3) failed to allocate memory to process the request.

# [DIAGNOSTICS](#DIAGNOSTICS)

\[XvBadPort]

Generated if the requested port does not exist.

# [SEE ALSO](#SEE_ALSO)

[**XvSetPortNotify**(3)](/man/os/libxv/XvSetPortNotify.3), [**XvSetPortAttribute**(3)](/man/os/libxv/XvSetPortAttribute.3), [**XvPortNotify**(3)](/man/os/libxv/XvPortNotify.3)

libXv 1.0.13 X Version 11

---

Document: XvSelectPortNotify(3) from libxv 1.0.13-r7 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxv
