Constructor
PwgPortInfonew_from_global
since: 0.1
Declaration [src]
PwgPortInfo*
pwg_port_info_new_from_global (
PwgGlobal* global
)
Description [src]
Creates an immutable port info wrapper for a port global.
Stability: Unstable
Available since: 0.1
Parameters
global-
Type:
PwgGlobalA PipeWire global descriptor.
The data is owned by the caller of the function.
Return value
Type: PwgPortInfo
A new port info object, or NULL if
global is not a PipeWire port.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |
The return value can be NULL. |