devicemonitor: Make it possible to add multiple filters
[platform/upstream/gstreamer.git] / gst / gstdeviceproviderfactory.h
1 /* GStreamer
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>
5  *
6  * gstdeviceproviderfactory.h: Header for GstDeviceProviderFactory
7  *
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.
12  *
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.
17  *
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.
22  */
23
24
25
26 #ifndef __GST_DEVICE_PROVIDER_FACTORY_H__
27 #define __GST_DEVICE_PROVIDER_FACTORY_H__
28
29 /**
30  * GstDeviceProviderFactory:
31  *
32  * The opaque #GstDeviceProviderFactory data structure.
33  *
34  * Since: 1.4
35  */
36
37 /**
38  * GstDeviceProviderFactoryClass:
39  *
40  * The opaque #GstDeviceProviderFactoryClass data structure.
41  *
42  * Since: 1.4
43  */
44 typedef struct _GstDeviceProviderFactory GstDeviceProviderFactory;
45 typedef struct _GstDeviceProviderFactoryClass GstDeviceProviderFactoryClass;
46
47 #include <gst/gstconfig.h>
48 #include <gst/gstplugin.h>
49 #include <gst/gstpluginfeature.h>
50 #include <gst/gstdeviceprovider.h>
51
52 G_BEGIN_DECLS
53
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))
62
63 GType                   gst_device_provider_factory_get_type          (void);
64
65 GstDeviceProviderFactory * gst_device_provider_factory_find            (const gchar *name);
66
67 GType                   gst_device_provider_factory_get_device_provider_type (GstDeviceProviderFactory *factory);
68
69 const gchar *           gst_device_provider_factory_get_metadata       (GstDeviceProviderFactory *factory, const gchar *key);
70 gchar **                gst_device_provider_factory_get_metadata_keys  (GstDeviceProviderFactory *factory);
71
72 GstDeviceProvider*       gst_device_provider_factory_get                (GstDeviceProviderFactory *factory) G_GNUC_MALLOC;
73 GstDeviceProvider*       gst_device_provider_factory_get_by_name        (const gchar *factoryname) G_GNUC_MALLOC;
74
75 gboolean                gst_device_provider_register                   (GstPlugin *plugin, const gchar *name,
76                                                                        guint rank,
77                                                                        GType type);
78
79 gboolean      gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
80                                                        gchar ** classes);
81
82 gboolean      gst_device_provider_factory_has_classes (GstDeviceProviderFactory *factory,
83                                                        const gchar * classes);
84
85 GList *       gst_device_provider_factory_list_get_device_providers (
86                                                        GstRank minrank) G_GNUC_MALLOC;
87
88 G_END_DECLS
89
90 #endif /* __GST_DEVICE_PROVIDER_FACTORY_H__ */