2020-03-16 17:43:07 +02:00
|
|
|
/* WirePlumber
|
|
|
|
|
*
|
|
|
|
|
* Copyright © 2020 Collabora Ltd.
|
|
|
|
|
* @author George Kiagiadakis <george.kiagiadakis@collabora.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-04 19:10:10 +02:00
|
|
|
* SECTION: si-interfaces
|
|
|
|
|
* @title: Session Item Interfaces
|
2020-03-16 17:43:07 +02:00
|
|
|
*/
|
|
|
|
|
|
2020-04-14 18:31:17 +03:00
|
|
|
#define G_LOG_DOMAIN "wp-si-interfaces"
|
|
|
|
|
|
2020-03-16 17:43:07 +02:00
|
|
|
#include "si-interfaces.h"
|
2020-03-31 19:26:56 +03:00
|
|
|
#include "wpenums.h"
|
2020-03-16 17:43:07 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* WpSiEndpoint:
|
|
|
|
|
*
|
|
|
|
|
* An interface for session items that implement a PipeWire endpoint.
|
|
|
|
|
*/
|
|
|
|
|
G_DEFINE_INTERFACE (WpSiEndpoint, wp_si_endpoint, WP_TYPE_SESSION_ITEM)
|
|
|
|
|
|
2020-04-22 13:49:37 +03:00
|
|
|
static WpProperties *
|
|
|
|
|
wp_si_endpoint_default_get_properties (WpSiEndpoint * self)
|
|
|
|
|
{
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-09 13:13:14 -05:00
|
|
|
static WpSiEndpointAcquisition *
|
|
|
|
|
wp_si_endpoint_default_get_endpoint_acquisition (WpSiEndpoint * self)
|
2020-04-22 13:49:37 +03:00
|
|
|
{
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-16 17:43:07 +02:00
|
|
|
static void
|
|
|
|
|
wp_si_endpoint_default_init (WpSiEndpointInterface * iface)
|
|
|
|
|
{
|
2020-04-22 13:49:37 +03:00
|
|
|
iface->get_properties = wp_si_endpoint_default_get_properties;
|
2021-03-09 13:13:14 -05:00
|
|
|
iface->get_endpoint_acquisition =
|
|
|
|
|
wp_si_endpoint_default_get_endpoint_acquisition;
|
2020-04-22 13:49:37 +03:00
|
|
|
|
2020-03-20 14:45:17 +02:00
|
|
|
g_signal_new ("endpoint-properties-changed", G_TYPE_FROM_INTERFACE (iface),
|
|
|
|
|
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 0);
|
2020-03-16 17:43:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2020-03-20 14:45:17 +02:00
|
|
|
* wp_si_endpoint_get_registration_info: (virtual get_registration_info)
|
2020-03-16 17:43:07 +02:00
|
|
|
* @self: the session item
|
|
|
|
|
*
|
2020-03-20 14:45:17 +02:00
|
|
|
* This should return information that is used for registering the endpoint,
|
|
|
|
|
* as a GVariant tuple of type (ssya{ss}) that contains, in order:
|
|
|
|
|
* - s: the endpoint's name
|
|
|
|
|
* - s: the media class
|
|
|
|
|
* - y: the direction
|
|
|
|
|
* - a{ss}: additional properties to be added to the list of global properties
|
2020-03-16 17:43:07 +02:00
|
|
|
*
|
2020-03-20 14:45:17 +02:00
|
|
|
* Returns: (transfer full): registration info for the endpoint
|
2020-03-16 17:43:07 +02:00
|
|
|
*/
|
2020-03-20 14:45:17 +02:00
|
|
|
GVariant *
|
|
|
|
|
wp_si_endpoint_get_registration_info (WpSiEndpoint * self)
|
2020-03-16 17:43:07 +02:00
|
|
|
{
|
2020-03-20 14:45:17 +02:00
|
|
|
g_return_val_if_fail (WP_IS_SI_ENDPOINT (self), NULL);
|
|
|
|
|
g_return_val_if_fail (WP_SI_ENDPOINT_GET_IFACE (self)->get_registration_info, NULL);
|
2020-03-16 17:43:07 +02:00
|
|
|
|
2020-03-20 14:45:17 +02:00
|
|
|
return WP_SI_ENDPOINT_GET_IFACE (self)->get_registration_info (self);
|
2020-03-16 17:43:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* wp_si_endpoint_get_properties: (virtual get_properties)
|
|
|
|
|
* @self: the session item
|
|
|
|
|
*
|
2020-03-17 23:03:10 +02:00
|
|
|
* Returns: (transfer full) (nullable): the properties of the endpoint
|
2020-03-16 17:43:07 +02:00
|
|
|
*/
|
|
|
|
|
WpProperties *
|
|
|
|
|
wp_si_endpoint_get_properties (WpSiEndpoint * self)
|
|
|
|
|
{
|
|
|
|
|
g_return_val_if_fail (WP_IS_SI_ENDPOINT (self), NULL);
|
|
|
|
|
g_return_val_if_fail (WP_SI_ENDPOINT_GET_IFACE (self)->get_properties, NULL);
|
|
|
|
|
|
|
|
|
|
return WP_SI_ENDPOINT_GET_IFACE (self)->get_properties (self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-09 13:13:14 -05:00
|
|
|
* wp_si_endpoint_get_endpoint_acquisition: (virtual get_endpoint_acquisition)
|
2020-03-16 17:43:07 +02:00
|
|
|
* @self: the session item
|
|
|
|
|
*
|
2021-03-09 13:13:14 -05:00
|
|
|
* Returns: (transfer none) (nullable): the endpoint acquisition interface
|
2020-04-22 13:49:37 +03:00
|
|
|
* associated with this endpoint, or %NULL if this endpoint does not require
|
2021-03-09 13:13:14 -05:00
|
|
|
* acquiring endpoints before linking them
|
2020-04-10 16:17:25 +03:00
|
|
|
*/
|
2021-03-09 13:13:14 -05:00
|
|
|
WpSiEndpointAcquisition *
|
|
|
|
|
wp_si_endpoint_get_endpoint_acquisition (WpSiEndpoint * self)
|
2020-04-10 16:17:25 +03:00
|
|
|
{
|
|
|
|
|
g_return_val_if_fail (WP_IS_SI_ENDPOINT (self), NULL);
|
2021-03-09 13:13:14 -05:00
|
|
|
g_return_val_if_fail (
|
|
|
|
|
WP_SI_ENDPOINT_GET_IFACE (self)->get_endpoint_acquisition, NULL);
|
2020-03-16 17:43:07 +02:00
|
|
|
|
2021-03-09 13:13:14 -05:00
|
|
|
return WP_SI_ENDPOINT_GET_IFACE (self)->get_endpoint_acquisition (self);
|
2020-03-16 17:43:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* WpSiLink:
|
|
|
|
|
*
|
|
|
|
|
* An interface for session items that provide a PipeWire endpoint link.
|
|
|
|
|
*/
|
|
|
|
|
G_DEFINE_INTERFACE (WpSiLink, wp_si_link, WP_TYPE_SESSION_ITEM)
|
|
|
|
|
|
2020-04-22 13:49:37 +03:00
|
|
|
static WpProperties *
|
|
|
|
|
wp_si_link_default_get_properties (WpSiLink * self)
|
|
|
|
|
{
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-16 17:43:07 +02:00
|
|
|
static void
|
|
|
|
|
wp_si_link_default_init (WpSiLinkInterface * iface)
|
|
|
|
|
{
|
2020-04-22 13:49:37 +03:00
|
|
|
iface->get_properties = wp_si_link_default_get_properties;
|
|
|
|
|
|
2020-03-31 19:26:56 +03:00
|
|
|
g_signal_new ("link-properties-changed", G_TYPE_FROM_INTERFACE (iface),
|
|
|
|
|
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* wp_si_link_get_registration_info: (virtual get_registration_info)
|
|
|
|
|
* @self: the session item
|
|
|
|
|
*
|
|
|
|
|
* This should return information that is used for registering the link,
|
2020-04-09 19:27:33 +03:00
|
|
|
* as a GVariant of type a{ss} that contains additional properties to be
|
|
|
|
|
* added to the list of global properties
|
2020-03-31 19:26:56 +03:00
|
|
|
*
|
|
|
|
|
* Returns: (transfer full): registration info for the link
|
|
|
|
|
*/
|
|
|
|
|
GVariant *
|
|
|
|
|
wp_si_link_get_registration_info (WpSiLink * self)
|
|
|
|
|
{
|
|
|
|
|
g_return_val_if_fail (WP_IS_SI_LINK (self), NULL);
|
|
|
|
|
g_return_val_if_fail (WP_SI_LINK_GET_IFACE (self)->get_registration_info, NULL);
|
|
|
|
|
|
|
|
|
|
return WP_SI_LINK_GET_IFACE (self)->get_registration_info (self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* wp_si_link_get_properties: (virtual get_properties)
|
|
|
|
|
* @self: the session item
|
|
|
|
|
*
|
|
|
|
|
* Returns: (transfer full) (nullable): the properties of the link
|
|
|
|
|
*/
|
|
|
|
|
WpProperties *
|
|
|
|
|
wp_si_link_get_properties (WpSiLink * self)
|
|
|
|
|
{
|
|
|
|
|
g_return_val_if_fail (WP_IS_SI_LINK (self), NULL);
|
|
|
|
|
g_return_val_if_fail (WP_SI_LINK_GET_IFACE (self)->get_properties, NULL);
|
|
|
|
|
|
|
|
|
|
return WP_SI_LINK_GET_IFACE (self)->get_properties (self);
|
2020-03-16 17:43:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-09 13:13:14 -05:00
|
|
|
* wp_si_link_get_out_endpoint: (virtual get_out_endpoint)
|
2020-03-16 17:43:07 +02:00
|
|
|
* @self: the session item
|
|
|
|
|
*
|
2021-03-09 13:13:14 -05:00
|
|
|
* Returns: (transfer none): the output endpoint that is linked by this link
|
2020-03-16 17:43:07 +02:00
|
|
|
*/
|
2021-03-09 13:13:14 -05:00
|
|
|
WpSiEndpoint *
|
|
|
|
|
wp_si_link_get_out_endpoint (WpSiLink * self)
|
2020-03-16 17:43:07 +02:00
|
|
|
{
|
|
|
|
|
g_return_val_if_fail (WP_IS_SI_LINK (self), NULL);
|
2021-03-09 13:13:14 -05:00
|
|
|
g_return_val_if_fail (WP_SI_LINK_GET_IFACE (self)->get_out_endpoint, NULL);
|
2020-03-16 17:43:07 +02:00
|
|
|
|
2021-03-09 13:13:14 -05:00
|
|
|
return WP_SI_LINK_GET_IFACE (self)->get_out_endpoint (self);
|
2020-03-16 17:43:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-09 13:13:14 -05:00
|
|
|
* wp_si_link_get_in_endpoint: (virtual get_in_endpoint)
|
2020-03-16 17:43:07 +02:00
|
|
|
* @self: the session item
|
|
|
|
|
*
|
2021-03-09 13:13:14 -05:00
|
|
|
* Returns: (transfer none): the input endpoint that is linked by this link
|
2020-03-16 17:43:07 +02:00
|
|
|
*/
|
2021-03-09 13:13:14 -05:00
|
|
|
WpSiEndpoint *
|
|
|
|
|
wp_si_link_get_in_endpoint (WpSiLink * self)
|
2020-03-16 17:43:07 +02:00
|
|
|
{
|
|
|
|
|
g_return_val_if_fail (WP_IS_SI_LINK (self), NULL);
|
2021-03-09 13:13:14 -05:00
|
|
|
g_return_val_if_fail (WP_SI_LINK_GET_IFACE (self)->get_in_endpoint, NULL);
|
2020-03-16 17:43:07 +02:00
|
|
|
|
2021-03-09 13:13:14 -05:00
|
|
|
return WP_SI_LINK_GET_IFACE (self)->get_in_endpoint (self);
|
2020-03-16 17:43:07 +02:00
|
|
|
}
|
2020-04-10 16:17:25 +03:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* WpSiPortInfo:
|
|
|
|
|
*
|
|
|
|
|
* An interface for retrieving PipeWire port information from a session item.
|
|
|
|
|
* This information is used to create links in the nodes graph.
|
|
|
|
|
*
|
|
|
|
|
* This is normally implemented by the same session items that implement
|
2021-03-09 13:13:14 -05:00
|
|
|
* #WpSiEndpoint. The standard link implementation expects to be able to cast
|
|
|
|
|
* a #WpSiEndpoint into a #WpSiPortInfo.
|
2020-04-10 16:17:25 +03:00
|
|
|
*/
|
|
|
|
|
G_DEFINE_INTERFACE (WpSiPortInfo, wp_si_port_info, WP_TYPE_SESSION_ITEM)
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
|
wp_si_port_info_default_init (WpSiPortInfoInterface * iface)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* wp_si_port_info_get_ports: (virtual get_ports)
|
|
|
|
|
* @self: the session item
|
|
|
|
|
* @context: (nullable): an optional context for the ports
|
|
|
|
|
*
|
|
|
|
|
* This method returns a variant of type "a(uuu)", where each tuple in the
|
|
|
|
|
* array contains the following information:
|
|
|
|
|
* - u: (guint32) node id
|
|
|
|
|
* - u: (guint32) port id (the port must belong on the node specified above)
|
|
|
|
|
* - u: (guint32) the audio channel (enum spa_audio_channel) that this port
|
|
|
|
|
* makes available, or 0 for non-audio content
|
|
|
|
|
*
|
|
|
|
|
* The order in which ports appear in this array is important when no channel
|
|
|
|
|
* information is available. The link implementation should link the ports
|
|
|
|
|
* in the order they appear. This is normally a good enough substitute for
|
|
|
|
|
* channel matching.
|
|
|
|
|
*
|
|
|
|
|
* The @context argument can be used to get different sets of ports from
|
|
|
|
|
* the item. The following well-known contexts are defined:
|
|
|
|
|
* - %NULL: get the standard ports to be linked
|
|
|
|
|
* - "monitor": get the monitor ports
|
|
|
|
|
* - "control": get the control port
|
|
|
|
|
* - "reverse": get the reverse direction ports, if this item controls a
|
|
|
|
|
* filter node, which would have ports on both directions
|
|
|
|
|
*
|
|
|
|
|
* Contexts other than %NULL may only be used internally to ease the
|
|
|
|
|
* implementation of more complex endpoint relationships. For example, a
|
|
|
|
|
* #WpSessionItem that is in control of an input (sink) adapter node may
|
2021-03-09 13:13:14 -05:00
|
|
|
* implement #WpSiPortInfo where the %NULL context will return the standard
|
|
|
|
|
* input ports and the "monitor" context will return the adapter's monitor
|
|
|
|
|
* ports. When linking this endpoint to another endpoint, the %NULL context
|
2020-04-10 16:17:25 +03:00
|
|
|
* will always be used, but the item may internally spawn a secondary
|
2021-03-09 13:13:14 -05:00
|
|
|
* #WpSessionItem that implements the "monitor" endpoint. That secondary
|
|
|
|
|
* endpoint may implement #WpSiPortInfo, chaining calls to the #WpSiPortInfo
|
|
|
|
|
* of the original item using the "monitor" context. This way, the monitor
|
|
|
|
|
* #WpSessionItem does not need to share control of the underlying node; it
|
|
|
|
|
* only proxies calls to satisfy the API.
|
2020-04-10 16:17:25 +03:00
|
|
|
*
|
|
|
|
|
* Returns: (transfer full): a #GVariant containing information about the
|
|
|
|
|
* ports of this item
|
|
|
|
|
*/
|
|
|
|
|
GVariant *
|
|
|
|
|
wp_si_port_info_get_ports (WpSiPortInfo * self, const gchar * context)
|
|
|
|
|
{
|
|
|
|
|
g_return_val_if_fail (WP_IS_SI_PORT_INFO (self), NULL);
|
|
|
|
|
g_return_val_if_fail (WP_SI_PORT_INFO_GET_IFACE (self)->get_ports, NULL);
|
|
|
|
|
|
|
|
|
|
return WP_SI_PORT_INFO_GET_IFACE (self)->get_ports (self, context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-09 13:13:14 -05:00
|
|
|
* WpSiEndpointAcquisition:
|
2020-04-10 16:17:25 +03:00
|
|
|
*
|
2021-03-09 13:13:14 -05:00
|
|
|
* This interface provides a way to request an endpoint for linking before doing
|
|
|
|
|
* so. This allows endpoint implementations to apply internal policy rules.
|
2020-04-10 16:17:25 +03:00
|
|
|
*
|
2021-03-09 13:13:14 -05:00
|
|
|
* A #WpSiEndpointAcquisition is associated directly with a #WpSiEndpoint via
|
|
|
|
|
* wp_si_endpoint_get_endpoint_acquisition(). In order to allow switching
|
|
|
|
|
* policies, it is recommended that endpoint implementations use a separate
|
|
|
|
|
* session item to implement this interface and allow replacing it.
|
2020-04-10 16:17:25 +03:00
|
|
|
*/
|
2021-03-09 13:13:14 -05:00
|
|
|
G_DEFINE_INTERFACE (WpSiEndpointAcquisition, wp_si_endpoint_acquisition,
|
2020-04-10 16:17:25 +03:00
|
|
|
WP_TYPE_SESSION_ITEM)
|
|
|
|
|
|
|
|
|
|
static void
|
2021-03-09 13:13:14 -05:00
|
|
|
wp_si_endpoint_acquisition_default_init (
|
|
|
|
|
WpSiEndpointAcquisitionInterface * iface)
|
2020-04-10 16:17:25 +03:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-09 13:13:14 -05:00
|
|
|
* wp_si_endpoint_acquisition_acquire: (virtual acquire)
|
2020-04-10 16:17:25 +03:00
|
|
|
* @self: the session item
|
2021-03-09 13:13:14 -05:00
|
|
|
* @acquisitor: the link that is trying to acquire an endpoint
|
|
|
|
|
* @endpoint: the endpoint that is being acquired
|
2020-04-10 16:17:25 +03:00
|
|
|
* @callback: (scope async): the callback to call when the operation is done
|
|
|
|
|
* @data: (closure): user data for @callback
|
|
|
|
|
*
|
2021-03-09 13:13:14 -05:00
|
|
|
* Acquires the @endpoint for linking by @acquisitor.
|
2020-04-10 16:17:25 +03:00
|
|
|
*
|
|
|
|
|
* When a link is not allowed by policy, this operation should return
|
|
|
|
|
* an error.
|
|
|
|
|
*
|
|
|
|
|
* When a link needs to be delayed for a short amount of time (ex. to apply
|
2021-03-09 13:13:14 -05:00
|
|
|
* a fade out effect on another endpoint), this operation should finish with a
|
2020-04-10 16:17:25 +03:00
|
|
|
* delay. It is safe to assume that after this operation completes,
|
2021-03-09 13:13:14 -05:00
|
|
|
* the endpoint will be linked immediately.
|
2020-04-10 16:17:25 +03:00
|
|
|
*/
|
|
|
|
|
void
|
2021-03-09 13:13:14 -05:00
|
|
|
wp_si_endpoint_acquisition_acquire (WpSiEndpointAcquisition * self,
|
|
|
|
|
WpSiLink * acquisitor, WpSiEndpoint * endpoint,
|
2020-04-10 16:17:25 +03:00
|
|
|
GAsyncReadyCallback callback, gpointer data)
|
|
|
|
|
{
|
2021-03-09 13:13:14 -05:00
|
|
|
g_return_if_fail (WP_IS_SI_ENDPOINT_ACQUISITION (self));
|
|
|
|
|
g_return_if_fail (WP_SI_ENDPOINT_ACQUISITION_GET_IFACE (self)->acquire);
|
2020-04-10 16:17:25 +03:00
|
|
|
|
2021-03-09 13:13:14 -05:00
|
|
|
WP_SI_ENDPOINT_ACQUISITION_GET_IFACE (self)->acquire (self, acquisitor,
|
|
|
|
|
endpoint, callback, data);
|
2020-04-10 16:17:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-09 13:13:14 -05:00
|
|
|
* wp_si_endpoint_acquisition_acquire_finish: (virtual acquire_finish)
|
2020-04-10 16:17:25 +03:00
|
|
|
* @self: the session item
|
|
|
|
|
* @res: the async result
|
|
|
|
|
* @error: (out) (optional): the operation's error, if it occurred
|
|
|
|
|
*
|
2021-03-09 13:13:14 -05:00
|
|
|
* Finishes the operation started by wp_si_endpoint_acquisition_acquire().
|
2020-04-10 16:17:25 +03:00
|
|
|
* This is meant to be called in the callback that was passed to that method.
|
|
|
|
|
*
|
|
|
|
|
* Returns: %TRUE on success, %FALSE if there was an error
|
|
|
|
|
*/
|
|
|
|
|
gboolean
|
2021-03-09 13:13:14 -05:00
|
|
|
wp_si_endpoint_acquisition_acquire_finish (WpSiEndpointAcquisition * self,
|
2020-04-10 16:17:25 +03:00
|
|
|
GAsyncResult * res, GError ** error)
|
|
|
|
|
{
|
2021-03-09 13:13:14 -05:00
|
|
|
g_return_val_if_fail (WP_IS_SI_ENDPOINT_ACQUISITION (self), FALSE);
|
2020-04-10 16:17:25 +03:00
|
|
|
g_return_val_if_fail (
|
2021-03-09 13:13:14 -05:00
|
|
|
WP_SI_ENDPOINT_ACQUISITION_GET_IFACE (self)->acquire_finish, FALSE);
|
2020-04-10 16:17:25 +03:00
|
|
|
|
2021-03-09 13:13:14 -05:00
|
|
|
return WP_SI_ENDPOINT_ACQUISITION_GET_IFACE (self)->acquire_finish (self, res,
|
2020-04-10 16:17:25 +03:00
|
|
|
error);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-09 13:13:14 -05:00
|
|
|
* wp_si_endpoint_acquisition_release: (virtual release)
|
2020-04-10 16:17:25 +03:00
|
|
|
* @self: the session item
|
2021-03-09 13:13:14 -05:00
|
|
|
* @acquisitor: the link that had previously acquired the endpoint
|
|
|
|
|
* @endpoint: the endpoint that is being released
|
2020-04-10 16:17:25 +03:00
|
|
|
*
|
2021-03-09 13:13:14 -05:00
|
|
|
* Releases the @endpoint, which means that it is being unlinked.
|
2020-04-10 16:17:25 +03:00
|
|
|
*/
|
|
|
|
|
void
|
2021-03-09 13:13:14 -05:00
|
|
|
wp_si_endpoint_acquisition_release (WpSiEndpointAcquisition * self,
|
|
|
|
|
WpSiLink * acquisitor, WpSiEndpoint * endpoint)
|
2020-04-10 16:17:25 +03:00
|
|
|
{
|
2021-03-09 13:13:14 -05:00
|
|
|
g_return_if_fail (WP_IS_SI_ENDPOINT_ACQUISITION (self));
|
|
|
|
|
g_return_if_fail (WP_SI_ENDPOINT_ACQUISITION_GET_IFACE (self)->release);
|
2020-04-10 16:17:25 +03:00
|
|
|
|
2021-03-09 13:13:14 -05:00
|
|
|
WP_SI_ENDPOINT_ACQUISITION_GET_IFACE (self)->release (self, acquisitor,
|
|
|
|
|
endpoint);
|
2020-04-10 16:17:25 +03:00
|
|
|
}
|