summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/python')
-rw-r--r--src/python/pyabc.i10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/python/pyabc.i b/src/python/pyabc.i
index 1bbf624f..2b09a256 100644
--- a/src/python/pyabc.i
+++ b/src/python/pyabc.i
@@ -373,6 +373,15 @@ void _pyabc_array_push(int i)
Vec_IntPush( vObjIds, i );
}
+int pyabc_array_read_entry(int i)
+{
+ Abc_Frame_t* pAbc = Abc_FrameGetGlobalFrame();
+ Vec_Int_t *vObjIds = Abc_FrameReadObjIds(pAbc);
+ if( !vObjIds )
+ return -1;
+ return Vec_IntEntry( vObjIds, i );
+}
+
static PyObject* pyabc_internal_python_command_callback = 0;
void pyabc_internal_set_command_callback( PyObject* callback )
@@ -709,6 +718,7 @@ PyObject* eq_classes();
void _pyabc_array_clear();
void _pyabc_array_push(int i);
+int pyabc_array_read_entry(int i);
void pyabc_internal_set_command_callback( PyObject* callback );
void pyabc_internal_register_command( char * sGroup, char * sName, int fChanges );