Constructor

PwgLinknew

since: 0.3.7

Declaration [src]

PwgLink*
pwg_link_new (
  PwgCore* core,
  PwgGlobal* global
)

Description [src]

Creates a live link proxy wrapper for link state inspection.

Stability: Unstable

Available since: 0.3.7

Parameters

core

Type: PwgCore

A PipeWire core wrapper.

The data is owned by the caller of the function.
global

Type: PwgGlobal

A PipeWire link global descriptor.

The data is owned by the caller of the function.

Return value

Type: PwgLink

A new link wrapper, or NULL if global is not a PipeWire link.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.