aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account.h
diff options
context:
space:
mode:
authorJonathan Tellier <jonathan.tellier@gmail.com>2009-08-26 03:57:41 +0800
committerjtellier <jonathan.tellier@collabora.co.uk>2009-08-26 21:01:29 +0800
commit8dba3957946252b622ba9c09e209f007d5961199 (patch)
tree09e75533af140bedae28e784316f1dfc4ce2c3b1 /libempathy/empathy-account.h
parentdf5323f845906bf4cdb85fc430f5412d5956b4c7 (diff)
downloadgsoc2013-empathy-8dba3957946252b622ba9c09e209f007d5961199.tar
gsoc2013-empathy-8dba3957946252b622ba9c09e209f007d5961199.tar.gz
gsoc2013-empathy-8dba3957946252b622ba9c09e209f007d5961199.tar.bz2
gsoc2013-empathy-8dba3957946252b622ba9c09e209f007d5961199.tar.lz
gsoc2013-empathy-8dba3957946252b622ba9c09e209f007d5961199.tar.xz
gsoc2013-empathy-8dba3957946252b622ba9c09e209f007d5961199.tar.zst
gsoc2013-empathy-8dba3957946252b622ba9c09e209f007d5961199.zip
- Added a utility function (empathy_account_reconnect_async) to easily
reconnect an account. - When we apply changes to an account, instead of disconnecting and reconnecting it, we use the new empathy_account_reconnect_async function.
Diffstat (limited to 'libempathy/empathy-account.h')
-rw-r--r--libempathy/empathy-account.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy/empathy-account.h b/libempathy/empathy-account.h
index f88ac43e4..8a22335ea 100644
--- a/libempathy/empathy-account.h
+++ b/libempathy/empathy-account.h
@@ -72,6 +72,13 @@ void empathy_account_set_enabled_async (EmpathyAccount *account,
gboolean empathy_account_set_enabled_finish (EmpathyAccount *account,
GAsyncResult *result, GError **error);
+void empathy_account_reconnect_async (EmpathyAccount *account,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean empathy_account_reconnect_finish (EmpathyAccount *account,
+ GAsyncResult *result,
+ GError **error);
+
gboolean empathy_account_is_enabled (EmpathyAccount *account);
gboolean empathy_account_is_valid (EmpathyAccount *account);