Clean up namespace a bit and add cython exporting of function signatures
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
# distutils: libraries = capnpc
|
# distutils: libraries = capnpc
|
||||||
# cython: c_string_type = str
|
# cython: c_string_type = str
|
||||||
# cython: c_string_encoding = default
|
# cython: c_string_encoding = default
|
||||||
|
# cython: embedsignature = True
|
||||||
|
|
||||||
cimport cython
|
cimport cython
|
||||||
cimport capnp_cpp as capnp
|
cimport capnp_cpp as capnp
|
||||||
@@ -598,12 +599,10 @@ cdef class MessageReader:
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
raise NotImplementedError("This is an abstract base class")
|
raise NotImplementedError("This is an abstract base class")
|
||||||
|
|
||||||
cpdef getRootNode(self):
|
cpdef _getRootNode(self):
|
||||||
return _NodeReader().init(self.thisptr.getRootNode())
|
return _NodeReader().init(self.thisptr.getRootNode())
|
||||||
cpdef getRootCodeGeneratorRequest(self):
|
cpdef _getRootCodeGeneratorRequest(self):
|
||||||
return _CodeGeneratorRequestReader()._init(self.thisptr.getRootCodeGeneratorRequest())
|
return _CodeGeneratorRequestReader()._init(self.thisptr.getRootCodeGeneratorRequest())
|
||||||
cpdef getRootDynamicStruct(self, StructSchema schema):
|
|
||||||
return _DynamicStructReader()._init(self.thisptr.getRootDynamicStruct(schema.thisptr), self)
|
|
||||||
cpdef getRoot(self, schema):
|
cpdef getRoot(self, schema):
|
||||||
cdef StructSchema s
|
cdef StructSchema s
|
||||||
if hasattr(schema, 'Schema'):
|
if hasattr(schema, 'Schema'):
|
||||||
|
|||||||
Reference in New Issue
Block a user