2 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3 * 2000,2004 Wim Taymans <wim@fluendo.com>
4 * 2012 Olivier Crete <olivier.crete@collabora.com>
6 * gstdeviceproviderfactory.h: Header for GstDeviceProviderFactory
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
26 #ifndef __GST_DEVICE_PROVIDER_FACTORY_H__
27 #define __GST_DEVICE_PROVIDER_FACTORY_H__
30 * GstDeviceProviderFactory:
32 * The opaque #GstDeviceProviderFactory data structure.
38 * GstDeviceProviderFactoryClass:
40 * The opaque #GstDeviceProviderFactoryClass data structure.
44 typedef struct _GstDeviceProviderFactory GstDeviceProviderFactory;
45 typedef struct _GstDeviceProviderFactoryClass GstDeviceProviderFactoryClass;
47 #include <gst/gstconfig.h>
48 #include <gst/gstplugin.h>
49 #include <gst/gstpluginfeature.h>
50 #include <gst/gstdeviceprovider.h>
54 #define GST_TYPE_DEVICE_PROVIDER_FACTORY (gst_device_provider_factory_get_type())
55 #define GST_DEVICE_PROVIDER_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DEVICE_PROVIDER_FACTORY,\
56 GstDeviceProviderFactory))
57 #define GST_DEVICE_PROVIDER_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DEVICE_PROVIDER_FACTORY,\
58 GstDeviceProviderFactoryClass))
59 #define GST_IS_DEVICE_PROVIDER_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DEVICE_PROVIDER_FACTORY))
60 #define GST_IS_DEVICE_PROVIDER_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DEVICE_PROVIDER_FACTORY))
61 #define GST_DEVICE_PROVIDER_FACTORY_CAST(obj) ((GstDeviceProviderFactory *)(obj))
64 GType gst_device_provider_factory_get_type (void);
67 GstDeviceProviderFactory * gst_device_provider_factory_find (const gchar *name);
70 GType gst_device_provider_factory_get_device_provider_type (GstDeviceProviderFactory *factory);
73 const gchar * gst_device_provider_factory_get_metadata (GstDeviceProviderFactory *factory, const gchar *key);
76 gchar ** gst_device_provider_factory_get_metadata_keys (GstDeviceProviderFactory *factory);
79 GstDeviceProvider* gst_device_provider_factory_get (GstDeviceProviderFactory *factory) G_GNUC_MALLOC;
82 GstDeviceProvider* gst_device_provider_factory_get_by_name (const gchar *factoryname) G_GNUC_MALLOC;
85 gboolean gst_device_provider_register (GstPlugin *plugin, const gchar *name,
89 gboolean gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
92 gboolean gst_device_provider_factory_has_classes (GstDeviceProviderFactory *factory,
93 const gchar * classes);
95 GList * gst_device_provider_factory_list_get_device_providers (
96 GstRank minrank) G_GNUC_MALLOC;
98 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
99 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDeviceProviderFactory, gst_object_unref)
104 #endif /* __GST_DEVICE_PROVIDER_FACTORY_H__ */