miniobject: Add weak referencing functionality
authorJosé Alburquerque <jaalburqu@svn.gnome.org>
Wed, 11 May 2011 17:09:19 +0000 (13:09 -0400)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 14 May 2011 09:39:35 +0000 (11:39 +0200)
commitcf671d7b0a89b24b14028a152cde8ff8e612d84e
tree2b5b0ad77870c374c14f0fd27ca91253a4364d4e
parent5229a26a7608d66b013fbcca80f8e38f875f4670
miniobject: Add weak referencing functionality

API: gst_mini_object_weak_ref()
API: gst_mini_object_weak_unref()

Add weak referencing functionality to GstMiniObject, which
allows to get notifications when an mini object is destroyed
but doesn't increase the real refcount. This is mostly
useful for bindings.

Fixes bug #609473.
gst/gstminiobject.c
gst/gstminiobject.h
tests/check/gst/gstminiobject.c