[telepathy-glib/master] account: add tp_account_get_unique name again
Jonny Lamb
jonny.lamb at collabora.co.uk
Mon Sep 28 07:38:45 PDT 2009
Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
docs/reference/telepathy-glib-sections.txt | 1 +
telepathy-glib/account.c | 14 ++++++++++++++
telepathy-glib/account.h | 2 ++
3 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/docs/reference/telepathy-glib-sections.txt b/docs/reference/telepathy-glib-sections.txt
index 1ddad05..63b03b2 100644
--- a/docs/reference/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib-sections.txt
@@ -3029,6 +3029,7 @@ tp_account_get_nickname
tp_account_set_nickname_async
tp_account_set_nickname_finish
tp_account_refresh_properties
+tp_account_get_unique_name
<SUBSECTION>
tp_cli_account_callback_for_reconnect
tp_cli_account_call_reconnect
diff --git a/telepathy-glib/account.c b/telepathy-glib/account.c
index 9725bfe..bbd237d 100644
--- a/telepathy-glib/account.c
+++ b/telepathy-glib/account.c
@@ -2115,3 +2115,17 @@ tp_account_set_nickname_async (TpAccount *account,
g_value_unset (&value);
}
+
+/**
+ * tp_account_get_unique_name:
+ * @account: a #TpAccount
+ *
+ * <!-- -->
+ *
+ * Returns: the unique name of @account
+ */
+const gchar *
+tp_account_get_unique_name (TpAccount *account)
+{
+ return tp_proxy_get_object_path (account);
+}
diff --git a/telepathy-glib/account.h b/telepathy-glib/account.h
index 8ad9cb3..53b4fbe 100644
--- a/telepathy-glib/account.h
+++ b/telepathy-glib/account.h
@@ -179,6 +179,8 @@ gboolean tp_account_set_nickname_finish (TpAccount *account,
void tp_account_refresh_properties (TpAccount *account);
+const gchar *tp_account_get_unique_name (TpAccount *account);
+
G_END_DECLS
#include <telepathy-glib/_gen/tp-cli-account.h>
--
1.5.6.5
More information about the telepathy-commits
mailing list