X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstchildproxy.h;h=57e30124d5e19815ca5e2de28deffc09a2e38288;hb=b89b1802df44829a0c034db5807bc893ad3c7774;hp=fda5ce75f93815bd6e71edaeb5098258f8b26ff6;hpb=f6a4af20b2b2b044e5c0b939f97861fc7cca94dd;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstchildproxy.h b/gst/gstchildproxy.h index fda5ce7..57e3012 100644 --- a/gst/gstchildproxy.h +++ b/gst/gstchildproxy.h @@ -15,8 +15,8 @@ * * 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. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #ifndef __GST_CHILD_PROXY_H__ @@ -44,7 +44,8 @@ typedef struct _GstChildProxyInterface GstChildProxyInterface; /** * GstChildProxyInterface: * @parent: parent interface type. - * @get_child_by_index: virtual method to fetch the child + * @get_child_by_name: virtual method to fetch the child by name + * @get_child_by_index: virtual method to fetch the child by index * @get_children_count: virtual method to get the children count * * #GstChildProxy interface. @@ -54,47 +55,62 @@ struct _GstChildProxyInterface GTypeInterface parent; /* methods */ - GstObject * (*get_child_by_index) (GstChildProxy * parent, guint index); - guint (*get_children_count) (GstChildProxy * parent); + GObject * (*get_child_by_name) (GstChildProxy * parent, const gchar * name); + GObject * (*get_child_by_index) (GstChildProxy * parent, guint index); + guint (*get_children_count) (GstChildProxy * parent); /*< private >*/ /* signals */ - void (*child_added) (GstChildProxy * parent, GstObject * child); - void (*child_removed) (GstChildProxy * parent, GstObject * child); + void (*child_added) (GstChildProxy * parent, GObject * child, const gchar * name); + void (*child_removed) (GstChildProxy * parent, GObject * child, const gchar * name); /*< private >*/ 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); - -guint gst_child_proxy_get_children_count (GstChildProxy * parent); -GstObject * gst_child_proxy_get_child_by_index (GstChildProxy * parent, guint index); - -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, - ...) G_GNUC_NULL_TERMINATED; - -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, - ...) G_GNUC_NULL_TERMINATED; - -void gst_child_proxy_child_added (GstObject * object, GstObject * child); -void gst_child_proxy_child_removed (GstObject * object, GstObject * child); +GST_API +GType gst_child_proxy_get_type (void); + +GST_API +GObject * gst_child_proxy_get_child_by_name (GstChildProxy * parent, const gchar * name); + +GST_API +guint gst_child_proxy_get_children_count (GstChildProxy * parent); + +GST_API +GObject * gst_child_proxy_get_child_by_index (GstChildProxy * parent, guint index); + +GST_API +gboolean gst_child_proxy_lookup (GstChildProxy *object, const gchar *name, + GObject **target, GParamSpec **pspec); +GST_API +void gst_child_proxy_get_property (GstChildProxy * object, const gchar *name, + GValue *value); +GST_API +void gst_child_proxy_get_valist (GstChildProxy * object, + const gchar * first_property_name, + va_list var_args); +GST_API +void gst_child_proxy_get (GstChildProxy * object, + const gchar * first_property_name, + ...) G_GNUC_NULL_TERMINATED; +GST_API +void gst_child_proxy_set_property (GstChildProxy * object, const gchar *name, + const GValue *value); + +GST_API +void gst_child_proxy_set_valist (GstChildProxy* object, + const gchar * first_property_name, + va_list var_args); +GST_API +void gst_child_proxy_set (GstChildProxy * object, + const gchar * first_property_name, + ...) G_GNUC_NULL_TERMINATED; +GST_API +void gst_child_proxy_child_added (GstChildProxy * parent, GObject * child, + const gchar *name); +GST_API +void gst_child_proxy_child_removed (GstChildProxy * parent, GObject * child, + const gchar *name); G_END_DECLS