basesrc: Downgrade EOS warning
[platform/upstream/gstreamer.git] / plugins / elements / gstfunnel.h
1 /*
2  * GStreamer Funnel element
3  *
4  * Copyright 2007 Collabora Ltd.
5  *  @author: Olivier Crete <olivier.crete@collabora.co.uk>
6  * Copyright 2007 Nokia Corp.
7  *
8  * gstfunnel.h: Simple Funnel element
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
23  */
24
25
26 #ifndef __GST_FUNNEL_H__
27 #define __GST_FUNNEL_H__
28
29 #include <gst/gst.h>
30
31 G_BEGIN_DECLS
32
33 #define GST_TYPE_FUNNEL \
34   (gst_funnel_get_type ())
35 #define GST_FUNNEL(obj) \
36   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_FUNNEL,GstFunnel))
37 #define GST_FUNNEL_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_FUNNEL,GstFunnelClass))
39 #define GST_IS_FUNNEL(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_FUNNEL))
41 #define GST_IS_FUNNEL_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FUNNEL))
43 #define GST_FUNNEL_CAST(obj) ((GstFunnel *)(obj))
44
45 typedef struct _GstFunnel          GstFunnel;
46 typedef struct _GstFunnelClass     GstFunnelClass;
47
48 /**
49  * GstFunnel:
50  *
51  * Opaque #GstFunnel data structure.
52  */
53 struct _GstFunnel {
54   GstElement      element;
55
56   /*< private >*/
57   GstPad         *srcpad;
58
59   GstPad *last_sinkpad;
60   gboolean forward_sticky_events;
61 };
62
63 struct _GstFunnelClass {
64   GstElementClass parent_class;
65 };
66
67 G_GNUC_INTERNAL GType   gst_funnel_get_type        (void);
68
69 G_END_DECLS
70
71 #endif /* __GST_FUNNEL_H__ */