added listing implemented interfaces to gst-inspect

Original commit message from CVS:
added listing implemented interfaces to gst-inspect
This commit is contained in:
Stefan Kost 2005-03-23 16:50:54 +00:00
parent 62cf7cc54d
commit b27ab8bfb5
2 changed files with 26 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-03-23 Stefan Kost <ensonic@users.sf.net>
* tools/gst-inspect.c: (print_interfaces), (print_element_info):
added listing implemented interfaces to gst-inspect
2005-03-21 Tim-Philipp Müller <tim at centricular dot net>
* gst/gststructure.c: (gst_structure_parse_field),

View file

@ -235,6 +235,26 @@ print_hierarchy (GType type, gint level, gint * maxlevel)
n_print ("\n");
}
static void
print_interfaces (GType type)
{
guint n_ifaces;
GType *iface, *ifaces = g_type_interfaces (type, &n_ifaces);
if (ifaces) {
if (n_ifaces) {
g_print ("Implemented Interfaces:\n");
iface = ifaces;
while (*iface) {
g_print (" %s\n", g_type_name (*iface));
iface++;
}
g_print ("\n");
g_free (ifaces);
}
}
}
static void
print_element_properties_info (GstElement * element)
{
@ -1103,6 +1123,7 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
}
print_hierarchy (G_OBJECT_TYPE (element), 0, &maxlevel);
print_interfaces (G_OBJECT_TYPE (element));
print_pad_templates_info (element, factory);
print_element_flag_info (element);