rpicamsrc: hook up to build
[platform/upstream/gstreamer.git] / sys / rpicamsrc / gstrpicamsrcdeviceprovider.h
1 /* GStreamer Raspberry Pi Camera Source Device Provider
2  * Copyright (C) 2014 Tim-Philipp Müller <tim@centricular.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __GST_RPICAMSRC_DEVICE_PROVIDER_H__
21 #define __GST_RPICAMSRC_DEVICE_PROVIDER_H__
22
23 #ifdef HAVE_CONFIG_H
24 #include "config.h"
25 #endif
26
27 #include <gst/gst.h>
28
29 G_BEGIN_DECLS
30
31 typedef struct _GstRpiCamSrcDeviceProvider GstRpiCamSrcDeviceProvider;
32 typedef struct _GstRpiCamSrcDeviceProviderClass GstRpiCamSrcDeviceProviderClass;
33
34 #define GST_TYPE_RPICAMSRC_DEVICE_PROVIDER                 (gst_rpi_cam_src_device_provider_get_type())
35 #define GST_IS_RPICAMSRC_DEVICE_PROVIDER(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_RPICAMSRC_DEVICE_PROVIDER))
36 #define GST_IS_RPICAMSRC_DEVICE_PROVIDER_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_RPICAMSRC_DEVICE_PROVIDER))
37 #define GST_RPICAMSRC_DEVICE_PROVIDER_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RPICAMSRC_DEVICE_PROVIDER, GstRpiCamSrcDeviceProviderClass))
38 #define GST_RPICAMSRC_DEVICE_PROVIDER(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_RPICAMSRC_DEVICE_PROVIDER, GstRpiCamSrcDeviceProvider))
39 #define GST_RPICAMSRC_DEVICE_PROVIDER_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_DEVICE_PROVIDER, GstRpiCamSrcDeviceProviderClass))
40 #define GST_RPICAMSRC_DEVICE_PROVIDER_CAST(obj)            ((GstRpiCamSrcDeviceProvider *)(obj))
41
42 struct _GstRpiCamSrcDeviceProvider {
43   GstDeviceProvider  parent;
44 };
45
46 struct _GstRpiCamSrcDeviceProviderClass {
47   GstDeviceProviderClass  parent_class;
48 };
49
50 GType  gst_rpi_cam_src_device_provider_get_type (void);
51
52 typedef struct _GstRpiCamSrcDevice GstRpiCamSrcDevice;
53 typedef struct _GstRpiCamSrcDeviceClass GstRpiCamSrcDeviceClass;
54
55 #define GST_TYPE_RPICAMSRC_DEVICE                 (gst_rpi_cam_src_device_get_type())
56 #define GST_IS_RPICAMSRC_DEVICE(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_RPICAMSRC_DEVICE))
57 #define GST_IS_RPICAMSRC_DEVICE_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_RPICAMSRC_DEVICE))
58 #define GST_RPICAMSRC_DEVICE_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RPICAMSRC_DEVICE, GstRpiCamSrcDeviceClass))
59 #define GST_RPICAMSRC_DEVICE(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_RPICAMSRC_DEVICE, GstRpiCamSrcDevice))
60 #define GST_RPICAMSRC_DEVICE_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_DEVICE, GstRpiCamSrcDeviceClass))
61 #define GST_RPICAMSRC_DEVICE_CAST(obj)            ((GstRpiCamSrcDevice *)(obj))
62
63 struct _GstRpiCamSrcDevice {
64   GstDevice  parent;
65 };
66
67 struct _GstRpiCamSrcDeviceClass {
68   GstDeviceClass  parent_class;
69 };
70
71 GType  gst_rpi_cam_src_device_get_type (void);
72
73 G_END_DECLS
74
75 #endif /* __GST_RPICAMSRC_DEVICE_PROVIDER_H__ */