* Implemented more of the Object module.
* Keep a Python Object reference for parent and track objects when available.
This commit is contained in:
@@ -87,6 +87,8 @@ The active object is the first in the list, if visible";
|
||||
/*****************************************************************************/
|
||||
/* Python C_Object structure definition. */
|
||||
/*****************************************************************************/
|
||||
struct C_Object;
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
struct Object * object;
|
||||
@@ -94,6 +96,14 @@ typedef struct {
|
||||
/* points to the data. This only is set when there's a valid PyObject */
|
||||
/* that points to the linked data. */
|
||||
PyObject * data;
|
||||
|
||||
/* points to the parent object. This is only set when there's a valid */
|
||||
/* PyObject (already created at some point). */
|
||||
struct C_Object * parent;
|
||||
|
||||
/* points to the object that is tracking this object. This is only set */
|
||||
/* when there's a valid PyObject (already created at some point). */
|
||||
struct C_Object * track;
|
||||
} C_Object;
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user