WpEndpointLink

The WpEndpointLink class allows accessing the properties and methods of a PipeWire endpoint link object (struct pw_endpoint_link from the session-manager extension).

A WpEndpointLink is constructed internally when a new endpoint link appears on the PipeWire registry and it is made available through the WpObjectManager API.

Methods

Signals

state-changed

state_changed_callback (WpEndpointLink * self,
                        WpEndpointLinkState * old_state,
                        WpEndpointLinkState * new_state,
                        gchar * error,
                        gpointer user_data)

Emitted when an endpoint link changes state

Parameters:

self

the endpoint link

old_state

the old state of the link

new_state

the new state of the link

error ( [nullable] ) –

the error string if the new state is WP_ENDPOINT_LINK_STATE_ERROR

user_data
No description available

Flags: Run Last


state-changed

def state_changed_callback (self, old_state, new_state, error, *user_data):
    #python callback for the 'state-changed' signal

Emitted when an endpoint link changes state

Parameters:

self ( Wp.EndpointLink ) –

the endpoint link

old_state ( Wp.EndpointLinkState ) –

the old state of the link

new_state ( Wp.EndpointLinkState ) –

the new state of the link

error ( str ) –

the error string if the new state is Wp.EndpointLinkState.ERROR

user_data ( variadic ) –
No description available

Flags: Run Last


state-changed

function state_changed_callback(self: Wp.EndpointLink, old_state: Wp.EndpointLinkState, new_state: Wp.EndpointLinkState, error: String, user_data: Object): {
    // javascript callback for the 'state-changed' signal
}

Emitted when an endpoint link changes state

Parameters:

self ( Wp.EndpointLink ) –

the endpoint link

old_state ( Wp.EndpointLinkState ) –

the old state of the link

new_state ( Wp.EndpointLinkState ) –

the new state of the link

error ( String ) –

the error string if the new state is Wp.EndpointLinkState.ERROR

user_data ( Object ) –
No description available

Flags: Run Last


Enumerations

WpEndpointLinkState

Members

WP_ENDPOINT_LINK_STATE_ERROR (-1) –
No description available
WP_ENDPOINT_LINK_STATE_PREPARING (0) –
No description available
WP_ENDPOINT_LINK_STATE_INACTIVE (1) –
No description available
WP_ENDPOINT_LINK_STATE_ACTIVE (2) –
No description available

Wp.EndpointLinkState

Members

Wp.EndpointLinkState.ERROR (-1) –
No description available
Wp.EndpointLinkState.PREPARING (0) –
No description available
Wp.EndpointLinkState.INACTIVE (1) –
No description available
Wp.EndpointLinkState.ACTIVE (2) –
No description available

Wp.EndpointLinkState

Members

Wp.EndpointLinkState.ERROR (-1) –
No description available
Wp.EndpointLinkState.PREPARING (0) –
No description available
Wp.EndpointLinkState.INACTIVE (1) –
No description available
Wp.EndpointLinkState.ACTIVE (2) –
No description available

Constants

The results of the search are