From 522d32224e5c66952ab756806e042cee1a48940e Mon Sep 17 00:00:00 2001 From: Julian Bouzas <julian.bouzas@collabora.com> Date: Tue, 19 May 2020 10:10:11 -0400 Subject: [PATCH] modules: config-policy: rename link-activated signal to link-created --- modules/module-config-policy/context.c | 8 ++++---- tests/modules/config-policy.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/module-config-policy/context.c b/modules/module-config-policy/context.c index dbe9ddf2..0fdc13f7 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 0dae4bef..bd9e8b0d 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); -- GitLab