Blame libs/gst/base/gstflowcombiner.h

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