mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 08:08:03 +02:00
policy: remove unneeded handle_endpoint callback
This commit is contained in:
parent
ea3b58c2cd
commit
b2c4162c2f
2 changed files with 0 additions and 21 deletions
|
|
@ -64,16 +64,12 @@ policy_mgr_endpoint_added (WpObjectManager *om, WpEndpoint *ep,
|
|||
{
|
||||
GList *l;
|
||||
WpPolicy *p;
|
||||
gboolean handled = FALSE;
|
||||
|
||||
for (l = g_list_first (self->policies); l; l = g_list_next (l)) {
|
||||
p = WP_POLICY (l->data);
|
||||
|
||||
if (WP_POLICY_GET_CLASS (p)->endpoint_added)
|
||||
WP_POLICY_GET_CLASS (p)->endpoint_added (p, ep);
|
||||
|
||||
if (!handled && WP_POLICY_GET_CLASS (p)->handle_endpoint)
|
||||
handled = WP_POLICY_GET_CLASS (p)->handle_endpoint (p, ep);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -208,21 +204,6 @@ wp_policy_manager_list_endpoints (WpPolicyManager * self,
|
|||
* This is only informative, to be used for internal bookeeping purposes.
|
||||
*/
|
||||
|
||||
/**
|
||||
* WpPolicyClass::handle_endpoint:
|
||||
* @self: the policy
|
||||
* @ep: the endpoint
|
||||
*
|
||||
* Called when a new endpoint has been added.
|
||||
* The policy is meant to decide if this endpoint needs to be linked
|
||||
* somewhere and if so, create the link.
|
||||
* This will only be called if no other higher-ranked policy has already
|
||||
* handled this endpoint.
|
||||
*
|
||||
* Returns: TRUE if this policy did handle the endpoint, FALSE to let some
|
||||
* lower-ranked policy to try
|
||||
*/
|
||||
|
||||
/**
|
||||
* WpPolicyClass::find_endpoint:
|
||||
* @self: the policy
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@ struct _WpPolicyClass
|
|||
void (*endpoint_added) (WpPolicy *self, WpEndpoint *ep);
|
||||
void (*endpoint_removed) (WpPolicy *self, WpEndpoint *ep);
|
||||
|
||||
gboolean (*handle_endpoint) (WpPolicy *self, WpEndpoint *ep);
|
||||
|
||||
WpEndpoint * (*find_endpoint) (WpPolicy *self, GVariant *props,
|
||||
guint32 *stream_id);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue