mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 19:28:01 +02:00
modules: config-policy: rename link-activated signal to link-created
This commit is contained in:
parent
bb82b0832e
commit
522d32224e
2 changed files with 6 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ struct _WpConfigPolicyContext
|
|||
};
|
||||
|
||||
enum {
|
||||
SIGNAL_LINK_ACTIVATED,
|
||||
SIGNAL_LINK_CREATED,
|
||||
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 activated signal */
|
||||
g_signal_emit (self, signals[SIGNAL_LINK_ACTIVATED], 0, ep_link);
|
||||
/* Emit the link created signal */
|
||||
g_signal_emit (self, signals[SIGNAL_LINK_CREATED], 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_ACTIVATED] = g_signal_new ("link-activated",
|
||||
signals[SIGNAL_LINK_CREATED] = g_signal_new ("link-created",
|
||||
G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 1, WP_TYPE_ENDPOINT_LINK);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ on_state_changed (WpEndpointLink *ep_link, WpEndpointLinkState old_state,
|
|||
}
|
||||
|
||||
static void
|
||||
on_link_activated (WpPlugin *ctx, WpEndpointLink *ep_link,
|
||||
on_link_created (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-activated", (GCallback) on_link_activated, f);
|
||||
g_signal_connect (ctx, "link-created", (GCallback) on_link_created, f);
|
||||
|
||||
/* Activate */
|
||||
wp_plugin_activate (ctx);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue