Few change on the obidms package

This commit is contained in:
2015-05-26 14:17:08 +02:00
parent 25da08f42c
commit 9f69f76704
2 changed files with 27 additions and 4 deletions

View File

@ -5,11 +5,15 @@ cdef extern from *:
cdef extern from "obidms.h":
struct OBIDMS_t:
pass
ctypedef OBIDMS_t* OBIDMS_p
ctypedef OBIDMS_t* OBIDMS_p
OBIDMS_p obi_create_dms(const_char_p name)
OBIDMS_p obi_open_dms(const_char_p name)
int obi_close_dms(OBIDMS_p dms)
class OBIDMS:
cdef class OBIDMS:
cdef OBIDMS_p pointer

View File

@ -1,6 +1,25 @@
from capidms cimport *
#from .capidms cimport *
cdef extern from *:
ctypedef char* const_char_p "const char*"
cdef extern from "obidms.h":
struct OBIDMS_t:
pass
ctypedef OBIDMS_t* OBIDMS_p
OBIDMS_p obi_create_dms(const_char_p name)
OBIDMS_p obi_open_dms(const_char_p name)
int obi_close_dms(OBIDMS_p dms)
cdef class OBIDMS:
cdef OBIDMS_p pointer
class OBIDMS:
def __init__(self,name):
self.pointer = obi_create_dms(name)