identity: Add a drop-allocation property
[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
44 typedef struct _GstFunnel          GstFunnel;
45 typedef struct _GstFunnelClass     GstFunnelClass;
46
47 /**
48  * GstFunnel:
49  *
50  * Opaque #GstFunnel data structure.
51  */
52 struct _GstFunnel {
53   GstElement      element;
54
55   /*< private >*/
56   GstPad         *srcpad;
57
58   GstPad *last_sinkpad;
59   gboolean forward_sticky_events;
60 };
61
62 struct _GstFunnelClass {
63   GstElementClass parent_class;
64 };
65
66 G_GNUC_INTERNAL GType   gst_funnel_get_type        (void);
67
68 G_END_DECLS
69
70 #endif /* __GST_FUNNEL_H__ */