X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstobject.h;h=bcf6c41e32e318328957ef9bee37886acaddf27f;hb=92b38d2a001d6a3d4be154cd541589c66b3c92e1;hp=1ca60635bf902ba8eceb5d93927eff7097097d39;hpb=56ee365077878819a0c4d938d9385bb18b5386b3;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstobject.h b/gst/gstobject.h index 1ca6063..bcf6c41 100644 --- a/gst/gstobject.h +++ b/gst/gstobject.h @@ -210,67 +210,118 @@ struct _GstObjectClass { }; /* normal GObject stuff */ + +GST_API GType gst_object_get_type (void); /* name routines */ + +GST_API gboolean gst_object_set_name (GstObject *object, const gchar *name); + +GST_API gchar* gst_object_get_name (GstObject *object); /* parentage routines */ + +GST_API gboolean gst_object_set_parent (GstObject *object, GstObject *parent); + +GST_API GstObject* gst_object_get_parent (GstObject *object); + +GST_API void gst_object_unparent (GstObject *object); + +GST_API gboolean gst_object_has_as_parent (GstObject *object, GstObject *parent); + +GST_API gboolean gst_object_has_as_ancestor (GstObject *object, GstObject *ancestor); -#ifndef GST_DISABLE_DEPRECATED + +GST_DEPRECATED_FOR(gst_object_has_as_ancestor) gboolean gst_object_has_ancestor (GstObject *object, GstObject *ancestor); -#endif +GST_API void gst_object_default_deep_notify (GObject *object, GstObject *orig, GParamSpec *pspec, gchar **excluded_props); /* refcounting + life cycle */ + +GST_API gpointer gst_object_ref (gpointer object); + +GST_API void gst_object_unref (gpointer object); + +GST_API +void gst_clear_object (GstObject **object_ptr); +#define gst_clear_object(object_ptr) g_clear_pointer ((object_ptr), gst_object_unref) + +GST_API gpointer gst_object_ref_sink (gpointer object); /* replace object pointer */ + +GST_API gboolean gst_object_replace (GstObject **oldobj, GstObject *newobj); /* printing out the 'path' of the object */ + +GST_API gchar * gst_object_get_path_string (GstObject *object); /* misc utils */ + +GST_API gboolean gst_object_check_uniqueness (GList *list, const gchar *name); /* controller functions */ #include #include +GST_API GstClockTime gst_object_suggest_next_sync (GstObject * object); + +GST_API gboolean gst_object_sync_values (GstObject * object, GstClockTime timestamp); +GST_API gboolean gst_object_has_active_control_bindings (GstObject *object); + +GST_API void gst_object_set_control_bindings_disabled (GstObject *object, gboolean disabled); + +GST_API void gst_object_set_control_binding_disabled (GstObject *object, const gchar * property_name, gboolean disabled); +GST_API gboolean gst_object_add_control_binding (GstObject * object, GstControlBinding * binding); + +GST_API GstControlBinding * gst_object_get_control_binding (GstObject *object, const gchar * property_name); + +GST_API gboolean gst_object_remove_control_binding (GstObject * object, GstControlBinding * binding); +GST_API GValue * gst_object_get_value (GstObject * object, const gchar * property_name, GstClockTime timestamp); +GST_API gboolean gst_object_get_value_array (GstObject * object, const gchar * property_name, GstClockTime timestamp, GstClockTime interval, guint n_values, gpointer values); +GST_API gboolean gst_object_get_g_value_array (GstObject * object, const gchar * property_name, GstClockTime timestamp, GstClockTime interval, guint n_values, GValue *values); - +GST_API GstClockTime gst_object_get_control_rate (GstObject * object); + +GST_API void gst_object_set_control_rate (GstObject * object, GstClockTime control_rate); #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC