Class

PwgRegistry

since: 0.1

Description [src]

final class Pwg.Registry : GObject.Object
{
  /* No available fields */
}

PipeWire registry discovery helper.

Registry objects keep a GListModel of copied PwgGlobal descriptors and emit signals when globals appear or disappear.

Stability: Unstable

Available since: 0.1

Ancestors

Constructors

pwg_registry_new

Creates a registry wrapper for discovering PipeWire globals.

since: 0.1

Instance methods

pwg_registry_dup_globals_by_interface

Copies a snapshot list of globals with a matching interface type.

since: 0.1

pwg_registry_dup_globals_by_media_class

Copies a snapshot list of globals with a matching media class.

since: 0.1

pwg_registry_dup_globals_by_property

Copies a snapshot list of globals with a matching property.

since: 0.1

pwg_registry_get_core

Gets the core used by this registry.

since: 0.1

pwg_registry_get_globals

Gets the live registry global model.

since: 0.1

pwg_registry_get_running

Gets whether registry discovery is running.

since: 0.1

pwg_registry_lookup_global

Looks up a global by PipeWire global id.

since: 0.1

pwg_registry_lookup_global_by_object_serial

Looks up the first global with a matching PipeWire object serial.

since: 0.1

pwg_registry_lookup_global_by_property

Looks up the first global with a matching property.

since: 0.1

pwg_registry_start

Starts registry discovery. If the core is not connected, this method connects it first.

since: 0.1

pwg_registry_stop

Stops registry discovery and clears the current global list.

since: 0.1

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Pwg.Registry:core

PipeWire core used by this registry.

since: 0.1

Pwg.Registry:globals

A GListModel of PwgGlobal objects.

since: 0.1

Pwg.Registry:running

Whether registry discovery is running.

since: 0.1

Signals

Pwg.Registry::global-added

Emitted from the object’s construction thread-default main context when a PipeWire global is discovered.

since: 0.1

Pwg.Registry::global-removed

Emitted from the object’s construction thread-default main context when a PipeWire global disappears.

since: 0.1

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct PwgRegistryClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.