Method

PwgMetadatadup_value

since: 0.1

Declaration [src]

char*
pwg_metadata_dup_value (
  PwgMetadata* self,
  unsigned int subject,
  const char* key
)

Description [src]

Copies a cached metadata value.

Stability: Unstable

Available since: 0.1

Parameters

subject

Type: unsigned int

The PipeWire global id associated with the metadata.

key

Type: const char*

A metadata key.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: char*

The cached metadata value, or NULL.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.