summaryrefslogtreecommitdiff
path: root/gst/gstchildproxy.h
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2005-08-22 21:03:33 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2005-08-22 21:03:33 +0000
commit650687b44958d5434cc2c1db551f813ba38a6d5b (patch)
tree64a9db0ee4e879c387641b4358e5c8537e313fbd /gst/gstchildproxy.h
parent5ffafdb34a093127251e774a8702abad0a3ccfe8 (diff)
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
Diffstat (limited to 'gst/gstchildproxy.h')
-rw-r--r--gst/gstchildproxy.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/gst/gstchildproxy.h b/gst/gstchildproxy.h
new file mode 100644
index 0000000000..5f5580cb78
--- /dev/null
+++ b/gst/gstchildproxy.h
@@ -0,0 +1,76 @@
+/* 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
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GST_CHILD_PROXY_H__
+#define __GST_CHILD_PROXY_H__
+
+#include <glib-object.h>
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+
+#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))
+
+typedef struct _GstChildProxy GstChildProxy; /* dummy object */
+typedef struct _GstChildProxyInterface GstChildProxyInterface;
+
+struct _GstChildProxyInterface
+{
+ GTypeInterface parent;
+
+ /* methods */
+ GstObject *(*get_child_by_index) (GstChildProxy * parent, guint index);
+ guint (*get_children_count) (GstChildProxy * parent);
+ /* signals */
+ void (*child_added) (GstChildProxy * parent, GstObject * child);
+ void (*child_removed) (GstChildProxy * parent, GstObject * child);
+
+ gpointer _gst_reserved[GST_PADDING];
+};
+
+GType gst_child_proxy_get_type (void);
+
+GstObject *gst_child_proxy_get_child_by_name (GstChildProxy * parent, const gchar * name);
+GstObject *gst_child_proxy_get_child_by_index (GstChildProxy * parent, guint index);
+guint gst_child_proxy_get_children_count (GstChildProxy * parent);
+
+gboolean gst_child_proxy_lookup (GstObject *object, const gchar *name,
+ GstObject **target, GParamSpec **pspec);
+void gst_child_proxy_get_property (GstObject * object, const gchar *name, GValue *value);
+void gst_child_proxy_get_valist (GstObject * object,
+ const gchar * first_property_name, va_list var_args);
+void gst_child_proxy_get (GstObject * object, const gchar * first_property_name,
+ ...);
+void gst_child_proxy_set_property (GstObject * object, const gchar *name, const GValue *value);
+void gst_child_proxy_set_valist (GstObject* object,
+ const gchar * first_property_name, va_list var_args);
+void gst_child_proxy_set (GstObject * object, const gchar * first_property_name,
+ ...);
+void gst_child_proxy_child_added (GstObject * object, GstObject * child);
+void gst_child_proxy_child_removed (GstObject * object, GstObject * child);
+
+G_END_DECLS
+
+#endif /* __GST_CHILD_PROXY_H__ */