Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
b2c4162c
Commit
b2c4162c
authored
5 years ago
by
Julian Bouzas
Browse files
Options
Downloads
Patches
Plain Diff
policy: remove unneeded handle_endpoint callback
parent
ea3b58c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/wp/policy.c
+0
-19
0 additions, 19 deletions
lib/wp/policy.c
lib/wp/policy.h
+0
-2
0 additions, 2 deletions
lib/wp/policy.h
with
0 additions
and
21 deletions
lib/wp/policy.c
+
0
−
19
View file @
b2c4162c
...
@@ -64,16 +64,12 @@ policy_mgr_endpoint_added (WpObjectManager *om, WpEndpoint *ep,
...
@@ -64,16 +64,12 @@ policy_mgr_endpoint_added (WpObjectManager *om, WpEndpoint *ep,
{
{
GList
*
l
;
GList
*
l
;
WpPolicy
*
p
;
WpPolicy
*
p
;
gboolean
handled
=
FALSE
;
for
(
l
=
g_list_first
(
self
->
policies
);
l
;
l
=
g_list_next
(
l
))
{
for
(
l
=
g_list_first
(
self
->
policies
);
l
;
l
=
g_list_next
(
l
))
{
p
=
WP_POLICY
(
l
->
data
);
p
=
WP_POLICY
(
l
->
data
);
if
(
WP_POLICY_GET_CLASS
(
p
)
->
endpoint_added
)
if
(
WP_POLICY_GET_CLASS
(
p
)
->
endpoint_added
)
WP_POLICY_GET_CLASS
(
p
)
->
endpoint_added
(
p
,
ep
);
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,
...
@@ -208,21 +204,6 @@ wp_policy_manager_list_endpoints (WpPolicyManager * self,
* This is only informative, to be used for internal bookeeping purposes.
* 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:
* WpPolicyClass::find_endpoint:
* @self: the policy
* @self: the policy
...
...
This diff is collapsed.
Click to expand it.
lib/wp/policy.h
+
0
−
2
View file @
b2c4162c
...
@@ -46,8 +46,6 @@ struct _WpPolicyClass
...
@@ -46,8 +46,6 @@ struct _WpPolicyClass
void
(
*
endpoint_added
)
(
WpPolicy
*
self
,
WpEndpoint
*
ep
);
void
(
*
endpoint_added
)
(
WpPolicy
*
self
,
WpEndpoint
*
ep
);
void
(
*
endpoint_removed
)
(
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
,
WpEndpoint
*
(
*
find_endpoint
)
(
WpPolicy
*
self
,
GVariant
*
props
,
guint32
*
stream_id
);
guint32
*
stream_id
);
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment