Blame libs/gst/base/gstflowcombiner.h

Packit f546b1
/* GStreamer
Packit f546b1
 *
Packit f546b1
 * Copyright (C) 2014 Samsung Electronics. All rights reserved.
Packit f546b1
 *   Author: Thiago Santos <ts.santos@sisa.samsung.com>
Packit f546b1
 *
Packit f546b1
 * gstflowcombiner.h: utility to combine multiple flow returns into a single one
Packit f546b1
 *
Packit f546b1
 * This library is free software; you can redistribute it and/or
Packit f546b1
 * modify it under the terms of the GNU Library General Public
Packit f546b1
 * License as published by the Free Software Foundation; either
Packit f546b1
 * version 2 of the License, or (at your option) any later version.
Packit f546b1
 *
Packit f546b1
 * This library is distributed in the hope that it will be useful,
Packit f546b1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit f546b1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit f546b1
 * Library General Public License for more details.
Packit f546b1
 *
Packit f546b1
 * You should have received a copy of the GNU Library General Public
Packit f546b1
 * License along with this library; if not, write to the
Packit f546b1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit f546b1
 * Boston, MA 02110-1301, USA.
Packit f546b1
 */
Packit f546b1
Packit f546b1
Packit f546b1
#ifndef __GST_FLOW_COMBINER_H__
Packit f546b1
#define __GST_FLOW_COMBINER_H__
Packit f546b1
Packit f546b1
#include <glib.h>
Packit f546b1
#include <gst/gst.h>
Packit f546b1
#include <gst/base/base-prelude.h>
Packit f546b1
Packit f546b1
G_BEGIN_DECLS
Packit f546b1
Packit f546b1
#define GST_TYPE_FLOW_COMBINER gst_flow_combiner_get_type()
Packit f546b1
Packit f546b1
/**
Packit f546b1
 * GstFlowCombiner:
Packit f546b1
 *
Packit f546b1
 * Opaque helper structure to aggregate flow returns.
Packit f546b1
 *
Packit f546b1
 * Since: 1.4
Packit f546b1
 */
Packit f546b1
typedef struct _GstFlowCombiner GstFlowCombiner;
Packit f546b1
Packit f546b1
GST_BASE_API
Packit f546b1
GstFlowCombiner * gst_flow_combiner_new (void);
Packit f546b1
Packit f546b1
GST_BASE_API
Packit f546b1
GstFlowCombiner * gst_flow_combiner_ref (GstFlowCombiner * combiner);
Packit f546b1
Packit f546b1
GST_BASE_API
Packit f546b1
void              gst_flow_combiner_unref (GstFlowCombiner * combiner);
Packit f546b1
Packit f546b1
GST_BASE_API
Packit f546b1
void              gst_flow_combiner_free (GstFlowCombiner * combiner);
Packit f546b1
Packit f546b1
GST_BASE_API
Packit f546b1
GstFlowReturn     gst_flow_combiner_update_flow (GstFlowCombiner * combiner, GstFlowReturn fret);
Packit f546b1
Packit f546b1
GST_BASE_API
Packit f546b1
GstFlowReturn     gst_flow_combiner_update_pad_flow (GstFlowCombiner * combiner, GstPad * pad,
Packit f546b1
                                                     GstFlowReturn fret);
Packit f546b1
GST_BASE_API
Packit f546b1
void              gst_flow_combiner_add_pad    (GstFlowCombiner * combiner, GstPad * pad);
Packit f546b1
Packit f546b1
GST_BASE_API
Packit f546b1
void              gst_flow_combiner_remove_pad (GstFlowCombiner * combiner, GstPad * pad);
Packit f546b1
Packit f546b1
GST_BASE_API
Packit f546b1
void              gst_flow_combiner_clear (GstFlowCombiner * combiner);
Packit f546b1
Packit f546b1
GST_BASE_API
Packit f546b1
void              gst_flow_combiner_reset (GstFlowCombiner * combiner);
Packit f546b1
Packit f546b1
GST_BASE_API
Packit f546b1
GType             gst_flow_combiner_get_type (void);
Packit f546b1
Packit f546b1
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
Packit f546b1
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstFlowCombiner, gst_flow_combiner_free)
Packit f546b1
#endif
Packit f546b1
Packit f546b1
G_END_DECLS
Packit f546b1
Packit f546b1
#endif /* __GST_FLOW_COMBINER_H__ */