Blame gst/gstchildproxy.h

Packit f546b1
/* GStreamer
Packit f546b1
 * Copyright (C) 2005 Stefan Kost <ensonic@users.sf.net>
Packit f546b1
 *
Packit f546b1
 * gstchildproxy.h: interface header for multi child elements
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
#ifndef __GST_CHILD_PROXY_H__
Packit f546b1
#define __GST_CHILD_PROXY_H__
Packit f546b1
Packit f546b1
#include <glib-object.h>
Packit f546b1
#include <gst/gst.h>
Packit f546b1
Packit f546b1
G_BEGIN_DECLS
Packit f546b1
Packit f546b1
Packit f546b1
#define GST_TYPE_CHILD_PROXY               (gst_child_proxy_get_type ())
Packit f546b1
#define GST_CHILD_PROXY(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_CHILD_PROXY, GstChildProxy))
Packit f546b1
#define GST_IS_CHILD_PROXY(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_CHILD_PROXY))
Packit f546b1
#define GST_CHILD_PROXY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_CHILD_PROXY, GstChildProxyInterface))
Packit f546b1
Packit f546b1
/**
Packit f546b1
 * GstChildProxy:
Packit f546b1
 *
Packit f546b1
 * Opaque #GstChildProxy data structure.
Packit f546b1
 */
Packit f546b1
typedef struct _GstChildProxy GstChildProxy;    /* dummy object */
Packit f546b1
typedef struct _GstChildProxyInterface GstChildProxyInterface;
Packit f546b1
Packit f546b1
/**
Packit f546b1
 * GstChildProxyInterface:
Packit f546b1
 * @parent: parent interface type.
Packit f546b1
 * @get_child_by_name:  virtual method to fetch the child by name
Packit f546b1
 * @get_child_by_index: virtual method to fetch the child by index
Packit f546b1
 * @get_children_count: virtual method to get the children count
Packit f546b1
 *
Packit f546b1
 * #GstChildProxy interface.
Packit f546b1
 */
Packit f546b1
struct _GstChildProxyInterface
Packit f546b1
{
Packit f546b1
  GTypeInterface parent;
Packit f546b1
Packit f546b1
  /* methods */
Packit f546b1
  GObject * (*get_child_by_name)  (GstChildProxy * parent, const gchar * name);
Packit f546b1
  GObject * (*get_child_by_index) (GstChildProxy * parent, guint index);
Packit f546b1
  guint     (*get_children_count) (GstChildProxy * parent);
Packit f546b1
  /*< private >*/
Packit f546b1
  /* signals */
Packit f546b1
  void      (*child_added)        (GstChildProxy * parent, GObject * child, const gchar * name);
Packit f546b1
  void      (*child_removed)      (GstChildProxy * parent, GObject * child, const gchar * name);
Packit f546b1
Packit f546b1
  /*< private >*/
Packit f546b1
  gpointer _gst_reserved[GST_PADDING];
Packit f546b1
};
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GType     gst_child_proxy_get_type (void);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GObject * gst_child_proxy_get_child_by_name  (GstChildProxy * parent, const gchar * name);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
guint     gst_child_proxy_get_children_count (GstChildProxy * parent);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GObject * gst_child_proxy_get_child_by_index (GstChildProxy * parent, guint index);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
gboolean  gst_child_proxy_lookup             (GstChildProxy *object, const gchar *name,
Packit f546b1
                                              GObject **target, GParamSpec **pspec);
Packit f546b1
GST_API
Packit f546b1
void      gst_child_proxy_get_property       (GstChildProxy * object, const gchar *name,
Packit f546b1
                                              GValue *value);
Packit f546b1
GST_API
Packit f546b1
void      gst_child_proxy_get_valist         (GstChildProxy * object,
Packit f546b1
                                              const gchar * first_property_name,
Packit f546b1
                                              va_list var_args);
Packit f546b1
GST_API
Packit f546b1
void      gst_child_proxy_get                (GstChildProxy * object,
Packit f546b1
                                              const gchar * first_property_name,
Packit f546b1
                                              ...) G_GNUC_NULL_TERMINATED;
Packit f546b1
GST_API
Packit f546b1
void      gst_child_proxy_set_property       (GstChildProxy * object, const gchar *name,
Packit f546b1
                                              const GValue *value);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
void      gst_child_proxy_set_valist         (GstChildProxy* object,
Packit f546b1
                                              const gchar * first_property_name,
Packit f546b1
                                              va_list var_args);
Packit f546b1
GST_API
Packit f546b1
void      gst_child_proxy_set                (GstChildProxy * object,
Packit f546b1
                                              const gchar * first_property_name,
Packit f546b1
                                              ...) G_GNUC_NULL_TERMINATED;
Packit f546b1
GST_API
Packit f546b1
void      gst_child_proxy_child_added        (GstChildProxy * parent, GObject * child,
Packit f546b1
                                              const gchar *name);
Packit f546b1
GST_API
Packit f546b1
void      gst_child_proxy_child_removed      (GstChildProxy * parent, GObject * child,
Packit f546b1
                                              const gchar *name);
Packit f546b1
Packit f546b1
G_END_DECLS
Packit f546b1
Packit f546b1
#endif /* __GST_CHILD_PROXY_H__ */