Add gst_typefactory_get_list to get a list of registered typefactories.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 24 Oct 2001 21:35:47 +0000 (21:35 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 24 Oct 2001 21:35:47 +0000 (21:35 +0000)
Original commit message from CVS:
Add gst_typefactory_get_list to get a list of registered
typefactories.

gst/gsttype.c
gst/gsttype.h

index b6bd195..1d76751 100644 (file)
@@ -290,6 +290,18 @@ gst_type_get_list (void)
   return _gst_types;
 }
 
+/**
+ * gst_typefactory_get_list:
+ *
+ * Return a list of all typefactories
+ *
+ * Returns: a list of GstTypeFactories
+ */
+GList*
+gst_typefactory_get_list (void)
+{
+  return _gst_typefactories;
+}
 
 /**
  * gst_typefactory_find:
index 9c7606c..a32879f 100644 (file)
@@ -83,6 +83,8 @@ GType                 gst_typefactory_get_type        (void);
 GstTypeFactory*                gst_typefactory_new             (GstTypeDefinition *definition);
 
 GstTypeFactory*                gst_typefactory_find            (const gchar *name);
+GList*                         gst_typefactory_get_list        (void);
+
 
 /* create a new type, or find/merge an existing one */
 guint16                        gst_type_register               (GstTypeFactory *factory);