diff options
author | Debarshi Ray <debarshir@gnome.org> | 2016-08-01 12:55:57 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2016-08-01 12:56:54 +0200 |
commit | 0c1e4a7c264fe658019f7dd432cb87ba77927ca4 (patch) | |
tree | 4877a017685deeb99b7b3a42270b618660453e7f | |
parent | 91e661222fc7765f6ae161e025b66bf02faba340 (diff) | |
download | gnome-online-accounts-wip/rishi/introspect.tar.gz |
examples: List the name of the GoaProviderswip/rishi/introspect
-rw-r--r-- | src/examples/introspect-providers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/examples/introspect-providers.c b/src/examples/introspect-providers.c index c39f5d6..5adc346 100644 --- a/src/examples/introspect-providers.c +++ b/src/examples/introspect-providers.c @@ -108,6 +108,7 @@ get_all (GObject *source_object, GAsyncResult *res, gpointer user_data) GoaProviderFeatures features; const gchar *type; gchar *group; + gchar *name; guint i; features = goa_provider_get_provider_features (provider); @@ -117,6 +118,9 @@ get_all (GObject *source_object, GAsyncResult *res, gpointer user_data) type = goa_provider_get_provider_type (provider); group = g_strconcat ("Provider ", type, NULL); + name = goa_provider_get_name (provider); + g_key_file_set_string (key_file, group, "ProviderName", name); + for (i = 0; provider_features_info[i].key != NULL; i++) { if ((features & provider_features_info[i].feature) != 0) @@ -134,6 +138,7 @@ get_all (GObject *source_object, GAsyncResult *res, gpointer user_data) } g_free (group); + g_free (name); } error = NULL; |