X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgsttypefindfactory.h;h=d0a7e1d07cb897ce5216e05808c3dcc03d0a30a7;hb=f34472822c257359d69ebf671b81d85646a40618;hp=3d8ff31ed3c2401afdee6f162022e4530143d3be;hpb=18291a6b40e8b8ae08488c4e1cf6b9261b25d742;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gsttypefindfactory.h b/gst/gsttypefindfactory.h index 3d8ff31..d0a7e1d 100644 --- a/gst/gsttypefindfactory.h +++ b/gst/gsttypefindfactory.h @@ -15,8 +15,8 @@ * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #ifndef __GST_TYPE_FIND_FACTORY_H__ @@ -36,46 +36,39 @@ G_BEGIN_DECLS #define GST_IS_TYPE_FIND_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TYPE_FIND_FACTORY)) #define GST_TYPE_FIND_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_TYPE_FIND_FACTORY, GstTypeFindFactoryClass)) -typedef struct _GstTypeFindFactory GstTypeFindFactory; -typedef struct _GstTypeFindFactoryClass GstTypeFindFactoryClass; - /** * GstTypeFindFactory: * - * Object that stores information about a typefind function. + * Opaque object that stores information about a typefind function. */ -struct _GstTypeFindFactory { - GstPluginFeature feature; - /* */ - - GstTypeFindFunction function; - gchar ** extensions; - GstCaps * caps; /* FIXME: not yet saved in registry */ - - gpointer user_data; - GDestroyNotify user_data_notify; - - gpointer _gst_reserved[GST_PADDING]; -}; - -struct _GstTypeFindFactoryClass { - GstPluginFeatureClass parent; - /* */ - - gpointer _gst_reserved[GST_PADDING]; -}; +typedef struct _GstTypeFindFactory GstTypeFindFactory; +typedef struct _GstTypeFindFactoryClass GstTypeFindFactoryClass; /* typefinding interface */ +GST_API GType gst_type_find_factory_get_type (void); +GST_API GList * gst_type_find_factory_get_list (void); -gchar ** gst_type_find_factory_get_extensions (GstTypeFindFactory *factory); +GST_API +const gchar * const * gst_type_find_factory_get_extensions (GstTypeFindFactory *factory); + +GST_API GstCaps * gst_type_find_factory_get_caps (GstTypeFindFactory *factory); + +GST_API +gboolean gst_type_find_factory_has_function (GstTypeFindFactory *factory); + +GST_API void gst_type_find_factory_call_function (GstTypeFindFactory *factory, GstTypeFind *find); +#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTypeFindFactory, gst_object_unref) +#endif + G_END_DECLS #endif /* __GST_TYPE_FIND_FACTORY_H__ */