X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstminiobject.h;h=cfd75628e92f0b1ac2cee4715fcfa83af05635c5;hb=a143d9cb0caee85bbe0c5e8b86e9f05918153c9d;hp=f7aa87a00ea96d37c3168d366c863190b7c5a142;hpb=8983cce9f61e54fec05ce09718d06061642635d8;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstminiobject.h b/gst/gstminiobject.h index f7aa87a..cfd7562 100644 --- a/gst/gstminiobject.h +++ b/gst/gstminiobject.h @@ -213,9 +213,9 @@ struct _GstMiniObject { GstMiniObjectFreeFunction free; /* < private > */ - /* Used to keep track of weak ref notifies and qdata */ - guint n_qdata; - gpointer qdata; + /* Used to keep track of parents, weak ref notifies and qdata */ + guint priv_uint; + gpointer priv_pointer; }; GST_API @@ -235,6 +235,10 @@ GST_API void gst_mini_object_unref (GstMiniObject *mini_object); GST_API +void gst_clear_mini_object (GstMiniObject **object_ptr); +#define gst_clear_mini_object(object_ptr) g_clear_pointer ((object_ptr), gst_mini_object_unref) + +GST_API void gst_mini_object_weak_ref (GstMiniObject *object, GstMiniObjectNotify notify, gpointer data); @@ -273,6 +277,11 @@ GST_API gpointer gst_mini_object_steal_qdata (GstMiniObject *object, GQuark quark); GST_API +void gst_mini_object_add_parent (GstMiniObject *object, GstMiniObject *parent); +GST_API +void gst_mini_object_remove_parent (GstMiniObject *object, GstMiniObject *parent); + +GST_API gboolean gst_mini_object_replace (GstMiniObject **olddata, GstMiniObject *newdata); GST_API