PipeWire 1.4.5 |

Loading...
Searching...
No Matches
Data Fields
pw_impl_node_events Struct Reference
Implementation API » Node Impl

Node events, listen to them with pw_impl_node_add_listener. More...

`#include <pipewire/impl-node.h>`

## Data Fields
uint32_t | version
void(* | destroy )(void *data)
| the node is destroyed
void(* | free )(void *data)
| the node is about to be freed
void(* | initialized )(void *data)
| the node is initialized
void(* | port_init )(void *data, struct pw_impl_port *port)
| a port is being initialized on the node
void(* | port_added )(void *data, struct pw_impl_port *port)
| a port was added
void(* | port_removed )(void *data, struct pw_impl_port *port)
| a port was removed
void(* | info_changed )(void *data, const struct pw_node_info *info)
| the node info changed
void(* | port_info_changed )(void *data, struct pw_impl_port *port, const struct pw_port_info *info)
| a port on the node changed info
void(* | active_changed )(void *data, bool active)
| the node active state changed
void(* | state_request )(void *data, enum pw_node_state state)
| a new state is requested on the node
void(* | state_changed )(void *data, enum pw_node_state old, enum pw_node_state state, const char *error)
| the state of the node changed
void(* | result )(void *data, int seq, int res, uint32_t type, const void *result)
| a result was received
void(* | event )(void *data, const struct spa_event *event)
| an event is emitted
void(* | driver_changed )(void *data, struct pw_impl_node *old, struct pw_impl_node *driver)
| the driver of the node changed
void(* | peer_added )(void *data, struct pw_impl_node *peer)
| a peer was added
void(* | peer_removed )(void *data, struct pw_impl_node *peer)
| a peer was removed

## Detailed Description

Node events, listen to them with pw_impl_node_add_listener.

## Field Documentation

## ◆ version

uint32_t pw_impl_node_events::version

## ◆ destroy

void(* pw_impl_node_events::destroy) (void *data)

the node is destroyed

## ◆ free

void(* pw_impl_node_events::free) (void *data)

the node is about to be freed

## ◆ initialized

void(* pw_impl_node_events::initialized) (void *data)

the node is initialized

## ◆ port_init

void(* pw_impl_node_events::port_init) (void *data, struct pw_impl_port *port)

a port is being initialized on the node

## ◆ port_added

void(* pw_impl_node_events::port_added) (void *data, struct pw_impl_port *port)

a port was added

## ◆ port_removed

void(* pw_impl_node_events::port_removed) (void *data, struct pw_impl_port *port)

a port was removed

## ◆ info_changed

void(* pw_impl_node_events::info_changed) (void *data, const struct pw_node_info *info)

the node info changed

## ◆ port_info_changed

void(* pw_impl_node_events::port_info_changed) (void *data, struct pw_impl_port *port, const struct pw_port_info *info)

a port on the node changed info

## ◆ active_changed

void(* pw_impl_node_events::active_changed) (void *data, bool active)

the node active state changed

## ◆ state_request

void(* pw_impl_node_events::state_request) (void *data, enum pw_node_state state)

a new state is requested on the node

## ◆ state_changed

void(* pw_impl_node_events::state_changed) (void *data, enum pw_node_state old, enum pw_node_state state, const char *error)

the state of the node changed

## ◆ result

void(* pw_impl_node_events::result) (void *data, int seq, int res, uint32_t type, const void *result)

a result was received

## ◆ event

void(* pw_impl_node_events::event) (void *data, const struct spa_event *event)

an event is emitted

## ◆ driver_changed

void(* pw_impl_node_events::driver_changed) (void *data, struct pw_impl_node *old, struct pw_impl_node *driver)

the driver of the node changed

## ◆ peer_added

void(* pw_impl_node_events::peer_added) (void *data, struct pw_impl_node *peer)

a peer was added

## ◆ peer_removed

void(* pw_impl_node_events::peer_removed) (void *data, struct pw_impl_node *peer)

a peer was removed

The documentation for this struct was generated from the following file:

- pipewire/impl-node.h