aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-account-manager.c16
-rw-r--r--libempathy/empathy-account-manager.h5
2 files changed, 21 insertions, 0 deletions
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index 9f0c71003..7624122d8 100644
--- a/libempathy/empathy-account-manager.c
+++ b/libempathy/empathy-account-manager.c
@@ -866,6 +866,22 @@ empathy_account_manager_request_global_presence (
}
TpConnectionPresenceType
+empathy_account_manager_get_requested_global_presence (
+ EmpathyAccountManager *manager,
+ gchar **status,
+ gchar **message)
+{
+ EmpathyAccountManagerPriv *priv = GET_PRIV (manager);
+
+ if (status != NULL)
+ *status = g_strdup (priv->requested_status);
+ if (message != NULL)
+ *message = g_strdup (priv->requested_status_message);
+
+ return priv->requested_presence;
+}
+
+TpConnectionPresenceType
empathy_account_manager_get_global_presence (
EmpathyAccountManager *manager,
gchar **status,
diff --git a/libempathy/empathy-account-manager.h b/libempathy/empathy-account-manager.h
index 1f73f635e..e0ec93761 100644
--- a/libempathy/empathy-account-manager.h
+++ b/libempathy/empathy-account-manager.h
@@ -86,6 +86,11 @@ void empathy_account_manager_request_global_presence (
const gchar *status,
const gchar *message);
+TpConnectionPresenceType empathy_account_manager_get_requested_global_presence (
+ EmpathyAccountManager *manager,
+ gchar **status,
+ gchar **message);
+
TpConnectionPresenceType empathy_account_manager_get_global_presence (
EmpathyAccountManager *manager,
gchar **status,