Few change on the obidms package
This commit is contained in:
@ -5,11 +5,15 @@ cdef extern from *:
|
|||||||
cdef extern from "obidms.h":
|
cdef extern from "obidms.h":
|
||||||
struct OBIDMS_t:
|
struct OBIDMS_t:
|
||||||
pass
|
pass
|
||||||
ctypedef OBIDMS_t* OBIDMS_p
|
|
||||||
|
ctypedef OBIDMS_t* OBIDMS_p
|
||||||
|
|
||||||
OBIDMS_p obi_create_dms(const_char_p name)
|
OBIDMS_p obi_create_dms(const_char_p name)
|
||||||
|
|
||||||
OBIDMS_p obi_open_dms(const_char_p name)
|
OBIDMS_p obi_open_dms(const_char_p name)
|
||||||
|
|
||||||
int obi_close_dms(OBIDMS_p dms)
|
int obi_close_dms(OBIDMS_p dms)
|
||||||
|
|
||||||
class OBIDMS:
|
cdef class OBIDMS:
|
||||||
cdef OBIDMS_p pointer
|
cdef OBIDMS_p pointer
|
||||||
|
|
@ -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):
|
def __init__(self,name):
|
||||||
self.pointer = obi_create_dms(name)
|
self.pointer = obi_create_dms(name)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user