summaryrefslogtreecommitdiff
path: root/util/mc-tool.c
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-28 11:18:10 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-28 11:24:28 +0200
commit70062e7a10ff62b3e0852001ab93a4bd9375714d (patch)
treee347d433639539ffb26392000b373ba2f1c890e6 /util/mc-tool.c
parentb5e82890de690905cabe24203ecd46ae41075998 (diff)
mc-tool: Display account's supersedes
Diffstat (limited to 'util/mc-tool.c')
-rw-r--r--util/mc-tool.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/mc-tool.c b/util/mc-tool.c
index 1c9e84b1..3e5445fd 100644
--- a/util/mc-tool.c
+++ b/util/mc-tool.c
@@ -721,6 +721,7 @@ command_show (TpAccount *account)
struct presence automatic, current, requested;
const gchar * const *schemes;
const gchar *storage_provider;
+ const gchar * const *supersedes;
show ("Account", tp_account_get_path_suffix (account));
show ("Display Name", tp_account_get_display_name (account));
@@ -793,6 +794,15 @@ command_show (TpAccount *account)
g_free (storage_restrictions);
}
+ supersedes = tp_account_get_supersedes (account);
+ if (supersedes != NULL && supersedes[0] != NULL)
+ {
+ puts ("");
+ puts ("Supersedes:");
+ for (; *supersedes != NULL; supersedes++)
+ printf (" %s\n", *supersedes + strlen (TP_ACCOUNT_OBJECT_PATH_BASE));
+ }
+
puts ("");
parameters = tp_account_get_parameters (account);