endpoint: remove wp_endpoint_create_link()
Not used and not useful with the current design. May be reverted in the future, if necessary.
This commit is contained in:
@@ -280,36 +280,6 @@ wp_endpoint_get_direction (WpEndpoint * self)
|
|||||||
return (WpDirection) ((struct pw_endpoint_info *) d->info)->direction;
|
return (WpDirection) ((struct pw_endpoint_info *) d->info)->direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* wp_endpoint_create_link:
|
|
||||||
* @self: the endpoint
|
|
||||||
* @props: the link properties
|
|
||||||
*
|
|
||||||
* Creates a #WpEndpointLink between @self and another endpoint, which
|
|
||||||
* must be specified in @props.
|
|
||||||
* @props may contain:
|
|
||||||
* - `endpoint-link.output.endpoint`: the bound id of the endpoint
|
|
||||||
* that is in the %WP_DIRECTION_OUTPUT direction
|
|
||||||
* - `endpoint-link.input.endpoint`: the bound id of the endpoint
|
|
||||||
* that is in the %WP_DIRECTION_INPUT direction
|
|
||||||
*
|
|
||||||
* The id of @self is not necessary to be specified, so only one of
|
|
||||||
* `endpoint-link.output.endpoint`, `endpoint-link.input.endpoint`
|
|
||||||
* is actually required.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
wp_endpoint_create_link (WpEndpoint * self, WpProperties * props)
|
|
||||||
{
|
|
||||||
WpPwObjectMixinData *d = wp_pw_object_mixin_get_data (self);
|
|
||||||
int res;
|
|
||||||
|
|
||||||
res = pw_endpoint_create_link (d->iface, wp_properties_peek_dict (props));
|
|
||||||
if (res < 0) {
|
|
||||||
wp_warning_object (self, "pw_endpoint_create_link: %d: %s", res,
|
|
||||||
spa_strerror (res));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* WpImplEndpoint */
|
/* WpImplEndpoint */
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
@@ -40,9 +40,6 @@ const gchar * wp_endpoint_get_media_class (WpEndpoint * self);
|
|||||||
WP_API
|
WP_API
|
||||||
WpDirection wp_endpoint_get_direction (WpEndpoint * self);
|
WpDirection wp_endpoint_get_direction (WpEndpoint * self);
|
||||||
|
|
||||||
WP_API
|
|
||||||
void wp_endpoint_create_link (WpEndpoint * self, WpProperties * props);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WP_TYPE_IMPL_ENDPOINT:
|
* WP_TYPE_IMPL_ENDPOINT:
|
||||||
*
|
*
|
||||||
|
@@ -754,18 +754,7 @@ static const luaL_Reg metadata_methods[] = {
|
|||||||
|
|
||||||
/* WpEndpoint */
|
/* WpEndpoint */
|
||||||
|
|
||||||
static int
|
|
||||||
endpoint_create_link (lua_State *L)
|
|
||||||
{
|
|
||||||
WpEndpoint *ep = wplua_checkobject (L, 1, WP_TYPE_ENDPOINT);
|
|
||||||
luaL_checktype (L, 2, LUA_TTABLE);
|
|
||||||
WpProperties *props = wplua_table_to_properties (L, 2);
|
|
||||||
wp_endpoint_create_link (ep, props);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const luaL_Reg endpoint_methods[] = {
|
static const luaL_Reg endpoint_methods[] = {
|
||||||
{ "create_link", endpoint_create_link },
|
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user