[grilo] grl-inspect: print related keys
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] grl-inspect: print related keys
- Date: Tue, 6 Oct 2015 16:17:38 +0000 (UTC)
commit 770f78f7825926751d20de458e4641b9ba75b68e
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Fri Oct 2 14:30:34 2015 +0000
grl-inspect: print related keys
tools/grilo-inspect/grl-inspect.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/tools/grilo-inspect/grl-inspect.c b/tools/grilo-inspect/grl-inspect.c
index d14d449..13dfe62 100644
--- a/tools/grilo-inspect/grl-inspect.c
+++ b/tools/grilo-inspect/grl-inspect.c
@@ -193,6 +193,15 @@ print_keys (const GList *keys)
}
static void
+print_related_keys (GrlKeyID key)
+{
+ const GList *partners;
+
+ partners = grl_registry_lookup_metadata_key_relation (registry, key);
+ print_keys (partners);
+}
+
+static void
print_readable_keys (GList *sources, GrlKeyID key)
{
GList *s;
@@ -435,7 +444,9 @@ introspect_key (const gchar *key_name)
grl_metadata_key_get_desc (key));
g_print (" %-20s %s\n", "Type:",
g_type_name (grl_metadata_key_get_type (key)));
- g_print ("\n");
+ g_print (" %-20s ", "Relations:");
+ print_related_keys (key);
+ g_print ("\n\n");
sources = grl_registry_get_sources (registry, FALSE);
sources = g_list_sort (sources, (GCompareFunc) compare_sources);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]