---
name: "XvPortNotify"
section: "3x"
platform: "linux"
package: "libxv-dev"
version: "1:1.0.2-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/XvPortNotify/3x"
---

# XvPortNotify(3x)

event generated when port attributes change

## Name

XvPortNotify - event generated when port attributes change

## Syntax

**#include \<X11/extensions/Xvlib.h\>**\

```
     typedef union {
       int type;
       XvVideoNotifyEvent xvvideo;
       XvPortNotifyEvent xvport;
       long pad[24];
     } XvEvent;
     typedef struct {
       int type;
       unsigned long serial;
       Bool send_event;
       Display *display;
       XvPortID port_id;
       Time time;
       Atom attribute;
       long value;
     } XvPortNotifyEvent;
```

- *type*

  Specifies the type of event: XvPortNotify.

- *serial*

  Number of the last request processed by the server.

- *send\_event*

  True if the event was generated by a SendEvent request.

- *display*

  A pointer to the display the event was read from.

- *port\_id*

  The port whose attribute has changed.

- *attribute*

  An atom specifying the attribute that changed.

- *value*

  The new value of the attribute.

## Description

XvPortNotify events are generated when a port attribute is set using the [XvSetPortAttribute(3x)](/XvSetPortAttribute/3x.md) function.

## See Also

[XvSetPortAttribute(3x)](/XvSetPortAttribute/3x.md), [XvGetPortAttribute(3x)](/XvGetPortAttribute/3x.md), [XvSelectPortNotify(3x)](/XvSelectPortNotify/3x.md)
