summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2010-10-12 14:19:06 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2010-10-12 15:43:43 +0100
commit4c9c8f48f1b3b86ea46c46055d4c2e5ef926cb5a (patch)
treec472ffce186a4edd866633df4077cf675dc6f4ef
parentdeb56f64ff9dc03f682e09561dfaad14bd3083d4 (diff)
downloadtelepathy-mission-control-4c9c8f48f1b3b86ea46c46055d4c2e5ef926cb5a.tar.gz
Implement the "list" operation in the default account store tool backend
-rw-r--r--test/account-store-default.c6
-rw-r--r--test/account-store-default.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/test/account-store-default.c b/test/account-store-default.c
index 0d119959..464aa986 100644
--- a/test/account-store-default.c
+++ b/test/account-store-default.c
@@ -277,3 +277,9 @@ default_exists (const gchar *account)
{
return g_key_file_has_group (default_keyfile (), account);
}
+
+GStrv
+default_list (void)
+{
+ return g_key_file_get_groups (default_keyfile (), NULL);
+}
diff --git a/test/account-store-default.h b/test/account-store-default.h
index e72ebe66..739f95cc 100644
--- a/test/account-store-default.h
+++ b/test/account-store-default.h
@@ -36,4 +36,6 @@ gboolean default_delete (const gchar *account);
gboolean default_exists (const gchar *account);
+GStrv default_list (void);
+
#endif