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
522d3222
Commit
522d3222
authored
4 years ago
by
Julian Bouzas
Browse files
Options
Downloads
Patches
Plain Diff
modules: config-policy: rename link-activated signal to link-created
parent
bb82b083
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
modules/module-config-policy/context.c
+4
-4
4 additions, 4 deletions
modules/module-config-policy/context.c
tests/modules/config-policy.c
+2
-2
2 additions, 2 deletions
tests/modules/config-policy.c
with
6 additions
and
6 deletions
modules/module-config-policy/context.c
+
4
−
4
View file @
522d3222
...
...
@@ -22,7 +22,7 @@ struct _WpConfigPolicyContext
};
enum
{
SIGNAL_LINK_
ACTIV
ATED
,
SIGNAL_LINK_
CRE
ATED
,
N_SIGNALS
};
...
...
@@ -232,8 +232,8 @@ on_session_links_changed (WpSession *session, WpConfigPolicyContext *self)
WP_ENDPOINT_LINK_STATE_INACTIVE
)
{
wp_endpoint_link_request_state
(
ep_link
,
WP_ENDPOINT_LINK_STATE_ACTIVE
);
/* Emit the link
activ
ated signal */
g_signal_emit
(
self
,
signals
[
SIGNAL_LINK_
ACTIV
ATED
],
0
,
ep_link
);
/* Emit the link
cre
ated signal */
g_signal_emit
(
self
,
signals
[
SIGNAL_LINK_
CRE
ATED
],
0
,
ep_link
);
}
g_value_unset
(
&
val
);
}
...
...
@@ -304,7 +304,7 @@ wp_config_policy_context_class_init (WpConfigPolicyContextClass *klass)
plugin_class
->
deactivate
=
wp_config_policy_context_deactivate
;
/* Signals */
signals
[
SIGNAL_LINK_
ACTIV
ATED
]
=
g_signal_new
(
"link-
activ
ated"
,
signals
[
SIGNAL_LINK_
CRE
ATED
]
=
g_signal_new
(
"link-
cre
ated"
,
G_TYPE_FROM_CLASS
(
klass
),
G_SIGNAL_RUN_LAST
,
0
,
NULL
,
NULL
,
NULL
,
G_TYPE_NONE
,
1
,
WP_TYPE_ENDPOINT_LINK
);
}
...
...
This diff is collapsed.
Click to expand it.
tests/modules/config-policy.c
+
2
−
2
View file @
522d3222
...
...
@@ -234,7 +234,7 @@ on_state_changed (WpEndpointLink *ep_link, WpEndpointLinkState old_state,
}
static
void
on_link_
activ
ated
(
WpPlugin
*
ctx
,
WpEndpointLink
*
ep_link
,
on_link_
cre
ated
(
WpPlugin
*
ctx
,
WpEndpointLink
*
ep_link
,
TestFixture
*
f
)
{
g_assert_nonnull
(
ep_link
);
...
...
@@ -255,7 +255,7 @@ playback (TestFixture *f, gconstpointer data)
wp_core_install_object_manager
(
f
->
base
.
core
,
om
);
g_autoptr
(
WpPlugin
)
ctx
=
wp_object_manager_lookup
(
om
,
WP_TYPE_PLUGIN
,
NULL
);
g_assert_nonnull
(
ctx
);
g_signal_connect
(
ctx
,
"link-
activ
ated"
,
(
GCallback
)
on_link_
activ
ated
,
f
);
g_signal_connect
(
ctx
,
"link-
cre
ated"
,
(
GCallback
)
on_link_
cre
ated
,
f
);
/* Activate */
wp_plugin_activate
(
ctx
);
...
...
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