ekiga r7354 - trunk/lib/gmref
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7354 - trunk/lib/gmref
- Date: Sat, 15 Nov 2008 14:55:32 +0000 (UTC)
Author: jpuydt
Date: Sat Nov 15 14:55:32 2008
New Revision: 7354
URL: http://svn.gnome.org/viewvc/ekiga?rev=7354&view=rev
Log:
Added function helper to gmref to ease debugging
Modified:
trunk/lib/gmref/gmref.cpp
trunk/lib/gmref/gmref.h
Modified: trunk/lib/gmref/gmref.cpp
==============================================================================
--- trunk/lib/gmref/gmref.cpp (original)
+++ trunk/lib/gmref/gmref.cpp Sat Nov 15 14:55:32 2008
@@ -60,3 +60,12 @@
delete obj;
}
}
+
+int
+gmref_count (GmRefCounted* obj)
+{
+ if (obj != 0)
+ return obj->count;
+ else
+ return -1;
+}
Modified: trunk/lib/gmref/gmref.h
==============================================================================
--- trunk/lib/gmref/gmref.h (original)
+++ trunk/lib/gmref/gmref.h Sat Nov 15 14:55:32 2008
@@ -63,6 +63,7 @@
void gmref_init ();
void gmref_inc (GmRefCounted* obj);
void gmref_dec (GmRefCounted* obj);
+int gmref_count (GmRefCounted* obj);
/* reference-counted pointer class */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]