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 */
44typedef struct _GstDeviceProviderFactory GstDeviceProviderFactory;
45typedef 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
52G_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
63GST_API
64GType gst_device_provider_factory_get_type (void);
65
66GST_API
67GstDeviceProviderFactory * gst_device_provider_factory_find (const gchar *name);
68
69GST_API
70GType gst_device_provider_factory_get_device_provider_type (GstDeviceProviderFactory *factory);
71
72GST_API
73const gchar * gst_device_provider_factory_get_metadata (GstDeviceProviderFactory *factory, const gchar *key);
74
75GST_API
76gchar ** gst_device_provider_factory_get_metadata_keys (GstDeviceProviderFactory *factory);
77
78GST_API
79GstDeviceProvider* gst_device_provider_factory_get (GstDeviceProviderFactory *factory) G_GNUC_MALLOC;
80
81GST_API
82GstDeviceProvider* gst_device_provider_factory_get_by_name (const gchar *factoryname) G_GNUC_MALLOC;
83
84GST_API
85gboolean gst_device_provider_register (GstPlugin *plugin, const gchar *name,
86 guint rank,
87 GType type);
88GST_API
89gboolean gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
90 gchar ** classes);
91GST_API
92gboolean gst_device_provider_factory_has_classes (GstDeviceProviderFactory *factory,
93 const gchar * classes);
94GST_API
95GList * gst_device_provider_factory_list_get_device_providers (
96 GstRank minrank) G_GNUC_MALLOC;
97
98G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDeviceProviderFactory, gst_object_unref)
99
100G_END_DECLS
101
102#endif /* __GST_DEVICE_PROVIDER_FACTORY_H__ */
103

source code of include/gstreamer-1.0/gst/gstdeviceproviderfactory.h