updated the OBIDMS class
This commit is contained in:
@ -6,4 +6,5 @@
|
|||||||
../../../src/obilittlebigman.c
|
../../../src/obilittlebigman.c
|
||||||
../../../src/obitypes.h
|
../../../src/obitypes.h
|
||||||
../../../src/obitypes.c
|
../../../src/obitypes.c
|
||||||
|
../../../src/private_openat.h
|
||||||
|
../../../src/private_openat.c
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
cdef extern from *:
|
cdef extern from *:
|
||||||
ctypedef char* const_char_p "const char*"
|
ctypedef char* const_char_p "const char*"
|
||||||
|
|
||||||
|
|
||||||
|
## Put somewhere else probably
|
||||||
|
cdef extern from "obitypes.h" nogil:
|
||||||
|
enum OBIType:
|
||||||
|
pass
|
||||||
|
|
||||||
|
ctypedef OBIType OBIType_t
|
||||||
|
|
||||||
|
|
||||||
cdef extern from "obidms.h" nogil:
|
cdef extern from "obidms.h" nogil:
|
||||||
struct OBIDMS_t:
|
struct OBIDMS_t:
|
||||||
pass
|
pass
|
||||||
@ -15,5 +24,6 @@ cdef extern from "obidms.h" nogil:
|
|||||||
|
|
||||||
int obi_close_dms(OBIDMS_p dms)
|
int obi_close_dms(OBIDMS_p dms)
|
||||||
|
|
||||||
|
|
||||||
cdef class OBIDMS:
|
cdef class OBIDMS:
|
||||||
cdef OBIDMS_p pointer
|
cdef OBIDMS_p pointer
|
||||||
|
@ -4,8 +4,8 @@ from .capidms cimport *
|
|||||||
|
|
||||||
cdef class OBIDMS:
|
cdef class OBIDMS:
|
||||||
|
|
||||||
def __init__(self,name):
|
def __init__(self, dms_name):
|
||||||
self.pointer = obi_dms(name)
|
self.pointer = obi_dms(dms_name)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
obi_close_dms(self.pointer)
|
obi_close_dms(self.pointer)
|
Reference in New Issue
Block a user