diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-06-09 13:35:08 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-06-09 13:35:08 +0200 |
commit | 1b98eb34d7e8b5e2ef505faf3ce0cfc4cc005ef3 (patch) | |
tree | 8287582f2e535cbf2cc9d34b38f8a5d3a795dbd2 /gst/gstminiobject.h | |
parent | 9d2953288cdfdd8ae18cad91eeaa02a4e685e096 (diff) |
miniobject: add new methods to manage miniobject pointers
Add a new method to steal the miniobject stored at a location.
Add a new method to store a miniobject in a location and taking ownership
of the miniobject.
Diffstat (limited to 'gst/gstminiobject.h')
-rw-r--r-- | gst/gstminiobject.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/gstminiobject.h b/gst/gstminiobject.h index b28f2908c7..22c307f5a3 100644 --- a/gst/gstminiobject.h +++ b/gst/gstminiobject.h @@ -211,7 +211,9 @@ void gst_mini_object_weak_unref (GstMiniObject *object, GstMiniObjectWeakNotify notify, gpointer data); -void gst_mini_object_replace (GstMiniObject **olddata, GstMiniObject *newdata); +gboolean gst_mini_object_replace (GstMiniObject **olddata, GstMiniObject *newdata); +gboolean gst_mini_object_take (GstMiniObject **olddata, GstMiniObject *newdata); +GstMiniObject * gst_mini_object_steal (GstMiniObject **olddata); G_END_DECLS |