pyorbit r159 - in trunk: . src
- From: gianmt svn gnome org
- To: svn-commits-list gnome org
- Subject: pyorbit r159 - in trunk: . src
- Date: Mon, 18 Aug 2008 21:08:44 +0000 (UTC)
Author: gianmt
Date: Mon Aug 18 21:08:43 2008
New Revision: 159
URL: http://svn.gnome.org/viewvc/pyorbit?rev=159&view=rev
Log:
add method get_orbit_object_refcount
Modified:
trunk/ChangeLog
trunk/src/pycorba-object.c
Modified: trunk/src/pycorba-object.c
==============================================================================
--- trunk/src/pycorba-object.c (original)
+++ trunk/src/pycorba-object.c Mon Aug 18 21:08:43 2008
@@ -255,6 +255,13 @@
}
+static PyObject *
+pycorba_object__get_orbit_object_refcount(PyCORBA_Object *self)
+{
+ ORBit_RootObject robj = (ORBit_RootObject)self->objref;
+ return Py_BuildValue("i", robj->refs);
+}
+
static PyMethodDef pycorba_object_methods[] = {
{ "_is_nil", (PyCFunction)pycorba_object__is_nil, METH_NOARGS,
"_is_nil() -> boolean" },
@@ -270,6 +277,9 @@
"_hash(maximum) -> int" },
{ "_narrow", (PyCFunction)pycorba_object__narrow, METH_VARARGS,
"_narrow(stub) -> object" },
+ { "_get_orbit_object_refcount",
+ (PyCFunction)pycorba_object__get_orbit_object_refcount, METH_NOARGS,
+ "_get_orbit_object_refcount() -> integer"},
{ NULL, NULL, 0 }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]