]> git.0d.be Git - empathy.git/commitdiff
add empathy_account_settings_get_tp_protocol
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 21 Dec 2009 17:01:13 +0000 (17:01 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 22 Dec 2009 11:14:15 +0000 (11:14 +0000)
libempathy/empathy-account-settings.c
libempathy/empathy-account-settings.h

index f33e437996590fe8cffd04650c4ace00ed1c8141..6b8b0177cd6643b278bc9630e6f7e568c7af92fb 100644 (file)
@@ -1283,3 +1283,11 @@ empathy_account_settings_is_valid (EmpathyAccountSettings *settings)
 
   return !missed;
 }
 
   return !missed;
 }
+
+const TpConnectionManagerProtocol *
+empathy_account_settings_get_tp_protocol (EmpathyAccountSettings *self)
+{
+  EmpathyAccountSettingsPriv *priv = GET_PRIV (self);
+
+  return tp_connection_manager_get_protocol (priv->manager, priv->protocol);
+}
index 0ea9b5567a8fb078285fba823b00d9ff48186ee7..419476b3ef5b4df1c0693826b47a6ad5af2ec169 100644 (file)
@@ -169,6 +169,9 @@ gboolean empathy_account_settings_apply_finish (
 
 gboolean empathy_account_settings_is_valid (EmpathyAccountSettings *settings);
 
 
 gboolean empathy_account_settings_is_valid (EmpathyAccountSettings *settings);
 
+const TpConnectionManagerProtocol * empathy_account_settings_get_tp_protocol (
+    EmpathyAccountSettings *settings);
+
 G_END_DECLS
 
 #endif /* #ifndef __EMPATHY_ACCOUNT_SETTINGS_H__*/
 G_END_DECLS
 
 #endif /* #ifndef __EMPATHY_ACCOUNT_SETTINGS_H__*/