diff --git a/modules/module-config-policy/context.c b/modules/module-config-policy/context.c index dbe9ddf227832a529c80a1f472879c79f7e1cee5..0fdc13f7d97e3db6a4a60fc57b0ef3b08133c561 100644 --- a/modules/module-config-policy/context.c +++ b/modules/module-config-policy/context.c @@ -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); } diff --git a/tests/modules/config-policy.c b/tests/modules/config-policy.c index 0dae4bef5337dc203e3d012bfb2b48575df7ea22..bd9e8b0dbcd4795106f1ebdfb6fb4c0ca8e8b707 100644 --- a/tests/modules/config-policy.c +++ b/tests/modules/config-policy.c @@ -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);