--- a/src/core/object.cc Tue Jul 08 10:12:38 2008 -0700
+++ b/src/core/object.cc Tue Jul 08 10:16:53 2008 -0700
@@ -95,6 +95,11 @@
m_disposed (false),
m_next (this)
{}
+uint32_t
+Object::GetReferenceCount (void) const
+{
+ return m_count;
+}
void
Object::Construct (const AttributeList &attributes)
{
--- a/src/core/object.h Tue Jul 08 10:12:38 2008 -0700
+++ b/src/core/object.h Tue Jul 08 10:16:53 2008 -0700
@@ -112,6 +112,12 @@
* dangerous.
*/
inline void Unref (void) const;
+
+ /**
+ * Get the reference count of the object. Normally not needed; for language bindings.
+ */
+ uint32_t GetReferenceCount (void) const;
+
/**
* \returns a pointer to the requested interface or zero if it could not be found.
*/