Blame gst/gstchildproxy.h

Packit Service 963350
/* GStreamer
Packit Service 963350
 * Copyright (C) 2005 Stefan Kost <ensonic@users.sf.net>
Packit Service 963350
 *
Packit Service 963350
 * gstchildproxy.h: interface header for multi child elements
Packit Service 963350
 *
Packit Service 963350
 * This library is free software; you can redistribute it and/or
Packit Service 963350
 * modify it under the terms of the GNU Library General Public
Packit Service 963350
 * License as published by the Free Software Foundation; either
Packit Service 963350
 * version 2 of the License, or (at your option) any later version.
Packit Service 963350
 *
Packit Service 963350
 * This library is distributed in the hope that it will be useful,
Packit Service 963350
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 963350
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 963350
 * Library General Public License for more details.
Packit Service 963350
 *
Packit Service 963350
 * You should have received a copy of the GNU Library General Public
Packit Service 963350
 * License along with this library; if not, write to the
Packit Service 963350
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit Service 963350
 * Boston, MA 02110-1301, USA.
Packit Service 963350
 */
Packit Service 963350
Packit Service 963350
#ifndef __GST_CHILD_PROXY_H__
Packit Service 963350
#define __GST_CHILD_PROXY_H__
Packit Service 963350
Packit Service 963350
#include <glib-object.h>
Packit Service 963350
#include <gst/gst.h>
Packit Service 963350
Packit Service 963350
G_BEGIN_DECLS
Packit Service 963350
Packit Service 963350
Packit Service 963350
#define GST_TYPE_CHILD_PROXY               (gst_child_proxy_get_type ())
Packit Service 963350
#define GST_CHILD_PROXY(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_CHILD_PROXY, GstChildProxy))
Packit Service 963350
#define GST_IS_CHILD_PROXY(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_CHILD_PROXY))
Packit Service 963350
#define GST_CHILD_PROXY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_CHILD_PROXY, GstChildProxyInterface))
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstChildProxy:
Packit Service 963350
 *
Packit Service 963350
 * Opaque #GstChildProxy data structure.
Packit Service 963350
 */
Packit Service 963350
typedef struct _GstChildProxy GstChildProxy;    /* dummy object */
Packit Service 963350
typedef struct _GstChildProxyInterface GstChildProxyInterface;
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstChildProxyInterface:
Packit Service 963350
 * @parent: parent interface type.
Packit Service 963350
 * @get_child_by_name:  virtual method to fetch the child by name
Packit Service 963350
 * @get_child_by_index: virtual method to fetch the child by index
Packit Service 963350
 * @get_children_count: virtual method to get the children count
Packit Service 963350
 *
Packit Service 963350
 * #GstChildProxy interface.
Packit Service 963350
 */
Packit Service 963350
struct _GstChildProxyInterface
Packit Service 963350
{
Packit Service 963350
  GTypeInterface parent;
Packit Service 963350
Packit Service 963350
  /* methods */
Packit Service 963350
  GObject * (*get_child_by_name)  (GstChildProxy * parent, const gchar * name);
Packit Service 963350
  GObject * (*get_child_by_index) (GstChildProxy * parent, guint index);
Packit Service 963350
  guint     (*get_children_count) (GstChildProxy * parent);
Packit Service 963350
  /*< private >*/
Packit Service 963350
  /* signals */
Packit Service 963350
  void      (*child_added)        (GstChildProxy * parent, GObject * child, const gchar * name);
Packit Service 963350
  void      (*child_removed)      (GstChildProxy * parent, GObject * child, const gchar * name);
Packit Service 963350
Packit Service 963350
  /*< private >*/
Packit Service 963350
  gpointer _gst_reserved[GST_PADDING];
Packit Service 963350
};
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GType     gst_child_proxy_get_type (void);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GObject * gst_child_proxy_get_child_by_name  (GstChildProxy * parent, const gchar * name);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
guint     gst_child_proxy_get_children_count (GstChildProxy * parent);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GObject * gst_child_proxy_get_child_by_index (GstChildProxy * parent, guint index);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean  gst_child_proxy_lookup             (GstChildProxy *object, const gchar *name,
Packit Service 963350
                                              GObject **target, GParamSpec **pspec);
Packit Service 963350
GST_API
Packit Service 963350
void      gst_child_proxy_get_property       (GstChildProxy * object, const gchar *name,
Packit Service 963350
                                              GValue *value);
Packit Service 963350
GST_API
Packit Service 963350
void      gst_child_proxy_get_valist         (GstChildProxy * object,
Packit Service 963350
                                              const gchar * first_property_name,
Packit Service 963350
                                              va_list var_args);
Packit Service 963350
GST_API
Packit Service 963350
void      gst_child_proxy_get                (GstChildProxy * object,
Packit Service 963350
                                              const gchar * first_property_name,
Packit Service 963350
                                              ...) G_GNUC_NULL_TERMINATED;
Packit Service 963350
GST_API
Packit Service 963350
void      gst_child_proxy_set_property       (GstChildProxy * object, const gchar *name,
Packit Service 963350
                                              const GValue *value);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
void      gst_child_proxy_set_valist         (GstChildProxy* object,
Packit Service 963350
                                              const gchar * first_property_name,
Packit Service 963350
                                              va_list var_args);
Packit Service 963350
GST_API
Packit Service 963350
void      gst_child_proxy_set                (GstChildProxy * object,
Packit Service 963350
                                              const gchar * first_property_name,
Packit Service 963350
                                              ...) G_GNUC_NULL_TERMINATED;
Packit Service 963350
GST_API
Packit Service 963350
void      gst_child_proxy_child_added        (GstChildProxy * parent, GObject * child,
Packit Service 963350
                                              const gchar *name);
Packit Service 963350
GST_API
Packit Service 963350
void      gst_child_proxy_child_removed      (GstChildProxy * parent, GObject * child,
Packit Service 963350
                                              const gchar *name);
Packit Service 963350
Packit Service 963350
G_END_DECLS
Packit Service 963350
Packit Service 963350
#endif /* __GST_CHILD_PROXY_H__ */