docs: add a missing const in bytereader docs
[platform/upstream/gstreamer.git] / libs / gst / base / gstflowcombiner.h
1 /* GStreamer
2  *
3  * Copyright (C) 2014 Samsung Electronics. All rights reserved.
4  *   Author: Thiago Santos <ts.santos@sisa.samsung.com>
5  *
6  * gstflowcombiner.h: utility to combine multiple flow returns into a single one
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., 51 Franklin St, Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  */
23
24
25 #ifndef __GST_FLOW_COMBINER_H__
26 #define __GST_FLOW_COMBINER_H__
27
28 #include <glib.h>
29 #include <gst/gst.h>
30
31 G_BEGIN_DECLS
32
33 #define GST_TYPE_FLOW_COMBINER gst_flow_combiner_get_type()
34
35 /**
36  * GstFlowCombiner:
37  *
38  * Opaque helper structure to aggregate flow returns.
39  *
40  * Since: 1.4
41  */
42 typedef struct _GstFlowCombiner GstFlowCombiner;
43
44 GST_EXPORT
45 GstFlowCombiner * gst_flow_combiner_new (void);
46
47 GST_EXPORT
48 GstFlowCombiner * gst_flow_combiner_ref (GstFlowCombiner * combiner);
49
50 GST_EXPORT
51 void              gst_flow_combiner_unref (GstFlowCombiner * combiner);
52
53 GST_EXPORT
54 void              gst_flow_combiner_free (GstFlowCombiner * combiner);
55
56 GST_EXPORT
57 GstFlowReturn     gst_flow_combiner_update_flow (GstFlowCombiner * combiner, GstFlowReturn fret);
58
59 GST_EXPORT
60 GstFlowReturn     gst_flow_combiner_update_pad_flow (GstFlowCombiner * combiner, GstPad * pad,
61                                                      GstFlowReturn fret);
62 GST_EXPORT
63 void              gst_flow_combiner_add_pad    (GstFlowCombiner * combiner, GstPad * pad);
64
65 GST_EXPORT
66 void              gst_flow_combiner_remove_pad (GstFlowCombiner * combiner, GstPad * pad);
67
68 GST_EXPORT
69 void              gst_flow_combiner_clear (GstFlowCombiner * combiner);
70
71 GST_EXPORT
72 void              gst_flow_combiner_reset (GstFlowCombiner * combiner);
73
74 GST_EXPORT
75 GType             gst_flow_combiner_get_type (void);
76
77 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
78 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstFlowCombiner, gst_flow_combiner_free)
79 #endif
80
81 G_END_DECLS
82
83 #endif /* __GST_FLOW_COMBINER_H__ */