diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-26 06:10:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-26 06:10:24 +0400 |
commit | c97be098f7db70f09d7047b7d69de7cf2c6ced70 (patch) | |
tree | bd48687cd01e3deaa0d13c0c484131fcee8aa418 /source/blender/python/api2_2x/gen_library.h | |
parent | aba5557028460e4647ff29e7fa71662e5a4104d5 (diff) |
Python API
made all libdata hashable - use the object type,name and lib for the hash.
added .tag to libdata so we can test if data's been processed without using dictionaries
added libdataseq.tag (write only) setting the tag flag (which can always be dirty)
Diffstat (limited to 'source/blender/python/api2_2x/gen_library.h')
-rw-r--r-- | source/blender/python/api2_2x/gen_library.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/gen_library.h b/source/blender/python/api2_2x/gen_library.h index 5f81424ca3a..74f34fd0019 100644 --- a/source/blender/python/api2_2x/gen_library.h +++ b/source/blender/python/api2_2x/gen_library.h @@ -59,9 +59,12 @@ {"properties",\ (getter)GenericLib_getProperties, (setter)NULL,\ "properties",\ + NULL},\ + {"tag",\ + (getter)GenericLib_getTag, (setter)GenericLib_setTag,\ + "temproary tag",\ NULL} - /* Dummy struct for getting the ID from a libdata BPyObject */ typedef struct { PyObject_HEAD /* required python macro */ @@ -72,6 +75,8 @@ int GenericLib_setName( void *self, PyObject *value ); PyObject *GenericLib_getName( void *self ); PyObject *GenericLib_getFakeUser( void *self ); int GenericLib_setFakeUser( void *self, PyObject *value ); +PyObject *GenericLib_getTag( void *self ); +int GenericLib_setTag( void *self, PyObject *value ); PyObject *GenericLib_getLib( void *self ); PyObject *GenericLib_getUsers( void *self ); PyObject *GenericLib_getProperties( void *self ); @@ -85,5 +90,5 @@ short GenericLib_getType(PyObject * pydata); /* Other ID functions */ ID *GetIdFromList( ListBase * list, char *name ); PyObject *GetPyObjectFromID( ID * id ); - +long GenericLib_hash(PyObject * pydata); #endif /* EXPP_gen_library_h */ |