element: Enforce that elements created by gst_element_factory_create/make() are floating
[platform/upstream/gstreamer.git] / gst / gstdeviceproviderfactory.h
index 0d93e2f..41840b8 100644 (file)
@@ -60,30 +60,44 @@ G_BEGIN_DECLS
 #define GST_IS_DEVICE_PROVIDER_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DEVICE_PROVIDER_FACTORY))
 #define GST_DEVICE_PROVIDER_FACTORY_CAST(obj)       ((GstDeviceProviderFactory *)(obj))
 
+GST_API
 GType                   gst_device_provider_factory_get_type          (void);
 
+GST_API
 GstDeviceProviderFactory * gst_device_provider_factory_find            (const gchar *name);
 
+GST_API
 GType                   gst_device_provider_factory_get_device_provider_type (GstDeviceProviderFactory *factory);
 
+GST_API
 const gchar *           gst_device_provider_factory_get_metadata       (GstDeviceProviderFactory *factory, const gchar *key);
+
+GST_API
 gchar **                gst_device_provider_factory_get_metadata_keys  (GstDeviceProviderFactory *factory);
 
+GST_API
 GstDeviceProvider*       gst_device_provider_factory_get                (GstDeviceProviderFactory *factory) G_GNUC_MALLOC;
+
+GST_API
 GstDeviceProvider*       gst_device_provider_factory_get_by_name        (const gchar *factoryname) G_GNUC_MALLOC;
 
+GST_API
 gboolean                gst_device_provider_register                   (GstPlugin *plugin, const gchar *name,
                                                                        guint rank,
                                                                        GType type);
-
+GST_API
 gboolean      gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
                                                        gchar ** classes);
-
+GST_API
 gboolean      gst_device_provider_factory_has_classes (GstDeviceProviderFactory *factory,
-                                                      const gchar * classes);
-
-GList *       gst_device_provider_factory_list_get_device_providers (const gchar *classes,
-                                                                   GstRank minrank) G_GNUC_MALLOC;
+                                                       const gchar * classes);
+GST_API
+GList *       gst_device_provider_factory_list_get_device_providers (
+                                                       GstRank minrank) G_GNUC_MALLOC;
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDeviceProviderFactory, gst_object_unref)
+#endif
 
 G_END_DECLS