Commit 9aaf2d26 authored by Celine Mercier's avatar Celine Mercier


parent 0951934f
#error Do not use this file, it is the result of a failed Cython compilation.
cdef extern from "obidms.h" nogil:
struct OBIDMS_t:
ctypedef OBIDMS_t* OBIDMS_p
OBIDMS_p obi_dms(const_char_p dms_name)
int obi_close_dms(OBIDMS_p dms)
cdef extern from "obidmscolumn.h" nogil:
struct OBIDMS_column_t:
ctypedef OBIDMS_column_t* OBIDMS_column_p
OBIDMS_column_p obi_create_column(OBIDMS_p dms, const char* column_name, OBIType_t type, size_t nb_lines, size_t nb_elements_per_line, const char* elements_names)
size_t obi_column_get_nb_lines_used(OBIDMS_column_p column)
const char* obi_column_get_elements_names(OBIDMS_column_p column)
void obi_column_make_unwritable(OBIDMS_column_p column)
OBIDMS_column_p obi_open_column(OBIDMS_p dms, const char* column_name, obiversion_t version_number)
OBIType_t obi_column_get_type(OBIDMS_column_p column)
int obi_close_column(OBIDMS_column_p column)
OBIType_t obi_column_get_data_type_from_name(OBIDMS_p dms, const char* column_name)
OBIDMS_column_p obi_clone_column(OBIDMS_p dms, const char* column_name, obiversion_t version_number, bint clone_data)
int obi_truncate_and_close_column(OBIDMS_column_p column)
obiversion_t obi_column_get_latest_version_from_name(OBIDMS_p dms, const char* column_name)
OBIType_t obi_column_get_data_type_from_name(OBIDMS_p dms, const char* column_name)
size_t obi_column_get_line_count_from_name(OBIDMS_p dms, const char* column_name)
cdef extern from "obierrno.h" nogil:
extern int obi_errno
from libc.stdint cimport int32_t
cdef extern from *:
ctypedef char* const_char_p "const char*"
cdef extern from "obidmscolumn.h" nogil:
ctypedef int32_t obiversion_t
cdef extern from "obitypes.h" nogil:
enum OBIType: # TODO je sais pas si ça sert de declarer le contenu de l'enum
ctypedef OBIType OBIType_t
enum OBIBool:
ctypedef OBIBool obibool_t
ctypedef int32_t obiint_t
ctypedef double obifloat_t
ctypedef char obichar_t
ctypedef size_t obiidx_t
char* name_data_type(int data_type)
cdef bytes str2bytes(str string)
cdef str bytes2str(bytes string)
\ No newline at end of file
cdef bytes str2bytes(str string):
return string.encode('ascii')
cdef str bytes2str(bytes string):
return string.decode('ascii')
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment