aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-account-settings.c14
-rw-r--r--libempathy/empathy-account-settings.h3
2 files changed, 17 insertions, 0 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 989d2d355..4e32dfcfa 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -1008,3 +1008,17 @@ empathy_account_settings_apply_finish (EmpathyAccountSettings *settings,
return TRUE;
}
+
+gboolean
+empathy_account_settings_owns_account (EmpathyAccountSettings *settings,
+ EmpathyAccount *account)
+{
+ EmpathyAccountSettingsPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_ACCOUNT_SETTINGS (settings), FALSE);
+ g_return_val_if_fail (EMPATHY_IS_ACCOUNT (account), FALSE);
+
+ priv = GET_PRIV (settings);
+
+ return (account == priv->account);
+}
diff --git a/libempathy/empathy-account-settings.h b/libempathy/empathy-account-settings.h
index d9231a50a..8119879cc 100644
--- a/libempathy/empathy-account-settings.h
+++ b/libempathy/empathy-account-settings.h
@@ -77,6 +77,9 @@ const gchar *empathy_account_settings_get_protocol (
EmpathyAccount *empathy_account_settings_get_account (
EmpathyAccountSettings *settings);
+gboolean empathy_account_settings_owns_account (
+ EmpathyAccountSettings *settings, EmpathyAccount *account);
+
TpConnectionManagerParam *empathy_account_settings_get_tp_params (
EmpathyAccountSettings *settings);