ported gstchildproxy over from 0.8 ported gst-inspect fixes and enhancements over from 0.8
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gstbin.c: (gst_bin_get_type),
(gst_bin_child_proxy_get_child_by_index),
(gst_bin_child_proxy_get_children_count),
(gst_bin_child_proxy_init):
* gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
(gst_child_proxy_get_child_by_index),
(gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
(gst_child_proxy_get_property), (gst_child_proxy_get_valist),
(gst_child_proxy_get), (gst_child_proxy_set_property),
(gst_child_proxy_set_valist), (gst_child_proxy_set),
(gst_child_proxy_child_added), (gst_child_proxy_child_removed),
(gst_child_proxy_base_init), (gst_child_proxy_get_type):
* gst/gstchildproxy.h:
* gst/parse/grammar.y:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
ported gstchildproxy over from 0.8
ported gst-inspect fixes and enhancements over from 0.8
2005-08-22 21:03:33 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2005 Stefan Kost <ensonic@users.sf.net>
|
|
|
|
*
|
|
|
|
* gstchildproxy.h: interface header for multi child elements
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 20:44:48 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
ported gstchildproxy over from 0.8 ported gst-inspect fixes and enhancements over from 0.8
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gstbin.c: (gst_bin_get_type),
(gst_bin_child_proxy_get_child_by_index),
(gst_bin_child_proxy_get_children_count),
(gst_bin_child_proxy_init):
* gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
(gst_child_proxy_get_child_by_index),
(gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
(gst_child_proxy_get_property), (gst_child_proxy_get_valist),
(gst_child_proxy_get), (gst_child_proxy_set_property),
(gst_child_proxy_set_valist), (gst_child_proxy_set),
(gst_child_proxy_child_added), (gst_child_proxy_child_removed),
(gst_child_proxy_base_init), (gst_child_proxy_get_type):
* gst/gstchildproxy.h:
* gst/parse/grammar.y:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
ported gstchildproxy over from 0.8
ported gst-inspect fixes and enhancements over from 0.8
2005-08-22 21:03:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_CHILD_PROXY_H__
|
|
|
|
#define __GST_CHILD_PROXY_H__
|
|
|
|
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2011-11-11 15:52:41 +00:00
|
|
|
#define GST_TYPE_CHILD_PROXY (gst_child_proxy_get_type ())
|
|
|
|
#define GST_CHILD_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_CHILD_PROXY, GstChildProxy))
|
|
|
|
#define GST_IS_CHILD_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_CHILD_PROXY))
|
|
|
|
#define GST_CHILD_PROXY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_CHILD_PROXY, GstChildProxyInterface))
|
ported gstchildproxy over from 0.8 ported gst-inspect fixes and enhancements over from 0.8
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gstbin.c: (gst_bin_get_type),
(gst_bin_child_proxy_get_child_by_index),
(gst_bin_child_proxy_get_children_count),
(gst_bin_child_proxy_init):
* gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
(gst_child_proxy_get_child_by_index),
(gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
(gst_child_proxy_get_property), (gst_child_proxy_get_valist),
(gst_child_proxy_get), (gst_child_proxy_set_property),
(gst_child_proxy_set_valist), (gst_child_proxy_set),
(gst_child_proxy_child_added), (gst_child_proxy_child_removed),
(gst_child_proxy_base_init), (gst_child_proxy_get_type):
* gst/gstchildproxy.h:
* gst/parse/grammar.y:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
ported gstchildproxy over from 0.8
ported gst-inspect fixes and enhancements over from 0.8
2005-08-22 21:03:33 +00:00
|
|
|
|
2007-02-11 19:59:12 +00:00
|
|
|
/**
|
|
|
|
* GstChildProxy:
|
|
|
|
*
|
|
|
|
* Opaque #GstChildProxy data structure.
|
|
|
|
*/
|
ported gstchildproxy over from 0.8 ported gst-inspect fixes and enhancements over from 0.8
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gstbin.c: (gst_bin_get_type),
(gst_bin_child_proxy_get_child_by_index),
(gst_bin_child_proxy_get_children_count),
(gst_bin_child_proxy_init):
* gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
(gst_child_proxy_get_child_by_index),
(gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
(gst_child_proxy_get_property), (gst_child_proxy_get_valist),
(gst_child_proxy_get), (gst_child_proxy_set_property),
(gst_child_proxy_set_valist), (gst_child_proxy_set),
(gst_child_proxy_child_added), (gst_child_proxy_child_removed),
(gst_child_proxy_base_init), (gst_child_proxy_get_type):
* gst/gstchildproxy.h:
* gst/parse/grammar.y:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
ported gstchildproxy over from 0.8
ported gst-inspect fixes and enhancements over from 0.8
2005-08-22 21:03:33 +00:00
|
|
|
typedef struct _GstChildProxy GstChildProxy; /* dummy object */
|
|
|
|
typedef struct _GstChildProxyInterface GstChildProxyInterface;
|
|
|
|
|
2007-02-11 19:59:12 +00:00
|
|
|
/**
|
|
|
|
* GstChildProxyInterface:
|
|
|
|
* @parent: parent interface type.
|
|
|
|
*
|
2008-08-12 06:27:35 +00:00
|
|
|
* #GstChildProxy interface.
|
2007-02-11 19:59:12 +00:00
|
|
|
*/
|
ported gstchildproxy over from 0.8 ported gst-inspect fixes and enhancements over from 0.8
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gstbin.c: (gst_bin_get_type),
(gst_bin_child_proxy_get_child_by_index),
(gst_bin_child_proxy_get_children_count),
(gst_bin_child_proxy_init):
* gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
(gst_child_proxy_get_child_by_index),
(gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
(gst_child_proxy_get_property), (gst_child_proxy_get_valist),
(gst_child_proxy_get), (gst_child_proxy_set_property),
(gst_child_proxy_set_valist), (gst_child_proxy_set),
(gst_child_proxy_child_added), (gst_child_proxy_child_removed),
(gst_child_proxy_base_init), (gst_child_proxy_get_type):
* gst/gstchildproxy.h:
* gst/parse/grammar.y:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
ported gstchildproxy over from 0.8
ported gst-inspect fixes and enhancements over from 0.8
2005-08-22 21:03:33 +00:00
|
|
|
struct _GstChildProxyInterface
|
|
|
|
{
|
|
|
|
GTypeInterface parent;
|
|
|
|
|
|
|
|
/* methods */
|
2021-02-11 15:04:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* #GstChildProxyInterface::get_child_by_name:
|
|
|
|
* @parent: the #GstChildProxy
|
|
|
|
* @name: the name of the child to fetch
|
|
|
|
*
|
|
|
|
* Fetch a child object by name
|
|
|
|
*
|
|
|
|
* Returns: (transfer full) (nullable): the child object
|
|
|
|
*/
|
2012-03-30 20:17:09 +00:00
|
|
|
GObject * (*get_child_by_name) (GstChildProxy * parent, const gchar * name);
|
2021-02-11 15:04:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* #GstChildProxyInterface::get_child_by_index:
|
|
|
|
* @parent: the #GstChildProxy
|
|
|
|
* @index: the index of the child to fetch
|
|
|
|
*
|
|
|
|
* Fetch a child object by index
|
|
|
|
*
|
|
|
|
* Returns: (transfer full) (nullable): the child object
|
|
|
|
*/
|
2012-03-30 20:17:09 +00:00
|
|
|
GObject * (*get_child_by_index) (GstChildProxy * parent, guint index);
|
2021-02-11 15:04:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* #GstChildProxyInterface::get_children_count:
|
|
|
|
* @parent: the #GstChildProxy
|
|
|
|
*
|
|
|
|
* Get the number of children in @parent
|
|
|
|
*
|
|
|
|
* Returns: the number of children
|
|
|
|
*/
|
2012-03-30 20:17:09 +00:00
|
|
|
guint (*get_children_count) (GstChildProxy * parent);
|
2021-02-11 15:04:01 +00:00
|
|
|
|
2009-06-09 13:54:27 +00:00
|
|
|
/*< private >*/
|
ported gstchildproxy over from 0.8 ported gst-inspect fixes and enhancements over from 0.8
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gstbin.c: (gst_bin_get_type),
(gst_bin_child_proxy_get_child_by_index),
(gst_bin_child_proxy_get_children_count),
(gst_bin_child_proxy_init):
* gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
(gst_child_proxy_get_child_by_index),
(gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
(gst_child_proxy_get_property), (gst_child_proxy_get_valist),
(gst_child_proxy_get), (gst_child_proxy_set_property),
(gst_child_proxy_set_valist), (gst_child_proxy_set),
(gst_child_proxy_child_added), (gst_child_proxy_child_removed),
(gst_child_proxy_base_init), (gst_child_proxy_get_type):
* gst/gstchildproxy.h:
* gst/parse/grammar.y:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
ported gstchildproxy over from 0.8
ported gst-inspect fixes and enhancements over from 0.8
2005-08-22 21:03:33 +00:00
|
|
|
/* signals */
|
2021-02-11 15:04:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* #GstChildProxyInterface::child_added:
|
|
|
|
* @parent: the #GstChildProxy
|
|
|
|
* @child: the child object
|
|
|
|
* @name: the name of the child object
|
|
|
|
*
|
|
|
|
* Called when @child is added to @parent
|
|
|
|
*/
|
2012-06-11 18:34:00 +00:00
|
|
|
void (*child_added) (GstChildProxy * parent, GObject * child, const gchar * name);
|
2021-02-11 15:04:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* #GstChildProxyInterface::child_removed:
|
|
|
|
* @parent: the #GstChildProxy
|
|
|
|
* @child: the child object
|
|
|
|
* @name: the name of the child object
|
|
|
|
*
|
|
|
|
* Called when @child is removed from @parent
|
|
|
|
*/
|
2012-06-11 18:34:00 +00:00
|
|
|
void (*child_removed) (GstChildProxy * parent, GObject * child, const gchar * name);
|
ported gstchildproxy over from 0.8 ported gst-inspect fixes and enhancements over from 0.8
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gstbin.c: (gst_bin_get_type),
(gst_bin_child_proxy_get_child_by_index),
(gst_bin_child_proxy_get_children_count),
(gst_bin_child_proxy_init):
* gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
(gst_child_proxy_get_child_by_index),
(gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
(gst_child_proxy_get_property), (gst_child_proxy_get_valist),
(gst_child_proxy_get), (gst_child_proxy_set_property),
(gst_child_proxy_set_valist), (gst_child_proxy_set),
(gst_child_proxy_child_added), (gst_child_proxy_child_removed),
(gst_child_proxy_base_init), (gst_child_proxy_get_type):
* gst/gstchildproxy.h:
* gst/parse/grammar.y:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
ported gstchildproxy over from 0.8
ported gst-inspect fixes and enhancements over from 0.8
2005-08-22 21:03:33 +00:00
|
|
|
|
2009-06-09 13:54:27 +00:00
|
|
|
/*< private >*/
|
ported gstchildproxy over from 0.8 ported gst-inspect fixes and enhancements over from 0.8
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gstbin.c: (gst_bin_get_type),
(gst_bin_child_proxy_get_child_by_index),
(gst_bin_child_proxy_get_children_count),
(gst_bin_child_proxy_init):
* gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
(gst_child_proxy_get_child_by_index),
(gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
(gst_child_proxy_get_property), (gst_child_proxy_get_valist),
(gst_child_proxy_get), (gst_child_proxy_set_property),
(gst_child_proxy_set_valist), (gst_child_proxy_set),
(gst_child_proxy_child_added), (gst_child_proxy_child_removed),
(gst_child_proxy_base_init), (gst_child_proxy_get_type):
* gst/gstchildproxy.h:
* gst/parse/grammar.y:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
ported gstchildproxy over from 0.8
ported gst-inspect fixes and enhancements over from 0.8
2005-08-22 21:03:33 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
|
|
|
};
|
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-03-30 20:17:09 +00:00
|
|
|
GType gst_child_proxy_get_type (void);
|
ported gstchildproxy over from 0.8 ported gst-inspect fixes and enhancements over from 0.8
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gstbin.c: (gst_bin_get_type),
(gst_bin_child_proxy_get_child_by_index),
(gst_bin_child_proxy_get_children_count),
(gst_bin_child_proxy_init):
* gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
(gst_child_proxy_get_child_by_index),
(gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
(gst_child_proxy_get_property), (gst_child_proxy_get_valist),
(gst_child_proxy_get), (gst_child_proxy_set_property),
(gst_child_proxy_set_valist), (gst_child_proxy_set),
(gst_child_proxy_child_added), (gst_child_proxy_child_removed),
(gst_child_proxy_base_init), (gst_child_proxy_get_type):
* gst/gstchildproxy.h:
* gst/parse/grammar.y:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
ported gstchildproxy over from 0.8
ported gst-inspect fixes and enhancements over from 0.8
2005-08-22 21:03:33 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-03-30 20:17:09 +00:00
|
|
|
GObject * gst_child_proxy_get_child_by_name (GstChildProxy * parent, const gchar * name);
|
2011-11-11 15:52:41 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-03-30 20:17:09 +00:00
|
|
|
guint gst_child_proxy_get_children_count (GstChildProxy * parent);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-03-30 20:17:09 +00:00
|
|
|
GObject * gst_child_proxy_get_child_by_index (GstChildProxy * parent, guint index);
|
2011-11-11 15:52:41 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-08-12 12:24:18 +00:00
|
|
|
gboolean gst_child_proxy_lookup (GstChildProxy *object, const gchar *name,
|
2012-03-30 20:17:09 +00:00
|
|
|
GObject **target, GParamSpec **pspec);
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-06-11 08:59:49 +00:00
|
|
|
void gst_child_proxy_get_property (GstChildProxy * object, const gchar *name,
|
2012-03-30 20:17:09 +00:00
|
|
|
GValue *value);
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-06-11 08:59:49 +00:00
|
|
|
void gst_child_proxy_get_valist (GstChildProxy * object,
|
2012-03-30 20:17:09 +00:00
|
|
|
const gchar * first_property_name,
|
|
|
|
va_list var_args);
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-06-11 08:59:49 +00:00
|
|
|
void gst_child_proxy_get (GstChildProxy * object,
|
2012-03-30 20:17:09 +00:00
|
|
|
const gchar * first_property_name,
|
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-06-11 08:59:49 +00:00
|
|
|
void gst_child_proxy_set_property (GstChildProxy * object, const gchar *name,
|
2012-03-30 20:17:09 +00:00
|
|
|
const GValue *value);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-06-11 08:59:49 +00:00
|
|
|
void gst_child_proxy_set_valist (GstChildProxy* object,
|
2012-03-30 20:17:09 +00:00
|
|
|
const gchar * first_property_name,
|
|
|
|
va_list var_args);
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-06-11 08:59:49 +00:00
|
|
|
void gst_child_proxy_set (GstChildProxy * object,
|
2012-03-30 20:17:09 +00:00
|
|
|
const gchar * first_property_name,
|
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-06-15 23:43:30 +00:00
|
|
|
void gst_child_proxy_child_added (GstChildProxy * parent, GObject * child,
|
2012-03-30 20:46:02 +00:00
|
|
|
const gchar *name);
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-06-15 23:43:30 +00:00
|
|
|
void gst_child_proxy_child_removed (GstChildProxy * parent, GObject * child,
|
2012-03-30 20:46:02 +00:00
|
|
|
const gchar *name);
|
ported gstchildproxy over from 0.8 ported gst-inspect fixes and enhancements over from 0.8
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gstbin.c: (gst_bin_get_type),
(gst_bin_child_proxy_get_child_by_index),
(gst_bin_child_proxy_get_children_count),
(gst_bin_child_proxy_init):
* gst/gstchildproxy.c: (gst_child_proxy_get_child_by_name),
(gst_child_proxy_get_child_by_index),
(gst_child_proxy_get_children_count), (gst_child_proxy_lookup),
(gst_child_proxy_get_property), (gst_child_proxy_get_valist),
(gst_child_proxy_get), (gst_child_proxy_set_property),
(gst_child_proxy_set_valist), (gst_child_proxy_set),
(gst_child_proxy_child_added), (gst_child_proxy_child_removed),
(gst_child_proxy_base_init), (gst_child_proxy_get_type):
* gst/gstchildproxy.h:
* gst/parse/grammar.y:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
ported gstchildproxy over from 0.8
ported gst-inspect fixes and enhancements over from 0.8
2005-08-22 21:03:33 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_CHILD_PROXY_H__ */
|