Fix build for Cython 0.21
Conflicts: capnp/helpers/helpers.pxd capnp/lib/capnp.pyx requirements.txt setup.py
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from .capnp.includes.capnp_cpp cimport Maybe, DynamicStruct, Request, Response, PyPromise, VoidPromise, PyPromiseArray, RemotePromise, DynamicCapability, InterfaceSchema, EnumSchema, StructSchema, DynamicValue, Capability, RpcSystem, MessageBuilder, MessageReader, TwoPartyVatNetwork, PyRestorer, AnyPointer, DynamicStruct_Builder, WaitScope, AsyncIoContext, StringPtr, TaskSet, Timer
|
from capnp.includes.capnp_cpp cimport Maybe, DynamicStruct, Request, Response, PyPromise, VoidPromise, PyPromiseArray, RemotePromise, DynamicCapability, InterfaceSchema, EnumSchema, StructSchema, DynamicValue, Capability, RpcSystem, MessageBuilder, MessageReader, TwoPartyVatNetwork, PyRestorer, AnyPointer, DynamicStruct_Builder, WaitScope, AsyncIoContext, StringPtr, TaskSet, Timer
|
||||||
|
|
||||||
from .capnp.includes.schema_cpp cimport ByteArray
|
from capnp.includes.schema_cpp cimport ByteArray
|
||||||
|
|
||||||
from non_circular cimport reraise_kj_exception
|
from non_circular cimport reraise_kj_exception
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ cdef extern from "capnp/helpers/checkCompiler.h":
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
from schema_cpp cimport Node, Data, StructNode, EnumNode, InterfaceNode, MessageBuilder, MessageReader
|
from schema_cpp cimport Node, Data, StructNode, EnumNode, InterfaceNode, MessageBuilder, MessageReader
|
||||||
from .capnp.helpers.non_circular cimport PythonInterfaceDynamicImpl, reraise_kj_exception, PyRefCounter, PyRestorer, PyEventPort, ErrorHandler
|
from capnp.helpers.non_circular cimport PythonInterfaceDynamicImpl, reraise_kj_exception, PyRefCounter, PyRestorer, PyEventPort, ErrorHandler
|
||||||
from .capnp.includes.types cimport *
|
from capnp.includes.types cimport *
|
||||||
|
|
||||||
cdef extern from "capnp/common.h" namespace " ::capnp":
|
cdef extern from "capnp/common.h" namespace " ::capnp":
|
||||||
enum Void:
|
enum Void:
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
from libc.stdint cimport *
|
from libc.stdint cimport *
|
||||||
from capnp_cpp cimport DynamicOrphan
|
from capnp_cpp cimport DynamicOrphan
|
||||||
from .capnp.helpers.non_circular cimport reraise_kj_exception
|
from capnp.helpers.non_circular cimport reraise_kj_exception
|
||||||
|
|
||||||
from .capnp.includes.types cimport *
|
from capnp.includes.types cimport *
|
||||||
|
|
||||||
cdef extern from "capnp/dynamic.h" namespace " ::capnp":
|
cdef extern from "capnp/dynamic.h" namespace " ::capnp":
|
||||||
cdef cppclass DynamicValue:
|
cdef cppclass DynamicValue:
|
||||||
@@ -34,7 +34,7 @@ cdef extern from "capnp/any.h" namespace " ::capnp":
|
|||||||
pass
|
pass
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
cdef extern from "capnp/blob.h" namespace " ::capnp":
|
cdef extern from "capnp/blob.h" namespace " ::capnp":
|
||||||
cdef cppclass Data:
|
cdef cppclass Data:
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
@@ -118,7 +118,7 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
_StructNode_Member_Body_fieldMember " ::capnp::schema::StructNode::Member::Body::Which::FIELD_MEMBER"
|
_StructNode_Member_Body_fieldMember " ::capnp::schema::StructNode::Member::Body::Which::FIELD_MEMBER"
|
||||||
_StructNode_Member_Body_unionMember " ::capnp::schema::StructNode::Member::Body::Which::UNION_MEMBER"
|
_StructNode_Member_Body_unionMember " ::capnp::schema::StructNode::Member::Body::Which::UNION_MEMBER"
|
||||||
cdef cppclass CodeGeneratorRequest
|
cdef cppclass CodeGeneratorRequest
|
||||||
|
|
||||||
cdef cppclass InterfaceNode
|
cdef cppclass InterfaceNode
|
||||||
cdef cppclass Value
|
cdef cppclass Value
|
||||||
cdef cppclass ConstNode
|
cdef cppclass ConstNode
|
||||||
@@ -131,13 +131,13 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
cdef cppclass Annotation
|
cdef cppclass Annotation
|
||||||
cdef cppclass CodeGeneratorRequest:
|
cdef cppclass CodeGeneratorRequest:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
List[CodeGeneratorRequest.Node].Reader getNodes()
|
List[CodeGeneratorRequest.Node].Reader getNodes()
|
||||||
List[UInt64].Reader getRequestedFiles()
|
List[UInt64].Reader getRequestedFiles()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
List[CodeGeneratorRequest.Node].Builder getNodes()
|
List[CodeGeneratorRequest.Node].Builder getNodes()
|
||||||
List[CodeGeneratorRequest.Node].Builder initNodes(int)
|
List[CodeGeneratorRequest.Node].Builder initNodes(int)
|
||||||
List[UInt64].Builder getRequestedFiles()
|
List[UInt64].Builder getRequestedFiles()
|
||||||
@@ -145,22 +145,22 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
cdef cppclass InterfaceNode:
|
cdef cppclass InterfaceNode:
|
||||||
cppclass Method
|
cppclass Method
|
||||||
|
|
||||||
|
|
||||||
cppclass Method:
|
cppclass Method:
|
||||||
cppclass Param
|
cppclass Param
|
||||||
|
|
||||||
|
|
||||||
cppclass Param:
|
cppclass Param:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
Value getDefaultValue()
|
Value getDefaultValue()
|
||||||
Type getType()
|
Type getType()
|
||||||
Text.Reader getName()
|
Text.Reader getName()
|
||||||
List[InterfaceNode.Method.Param.Annotation].Reader getAnnotations()
|
List[InterfaceNode.Method.Param.Annotation].Reader getAnnotations()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
Value getDefaultValue()
|
Value getDefaultValue()
|
||||||
void setDefaultValue(Value)
|
void setDefaultValue(Value)
|
||||||
Type getType()
|
Type getType()
|
||||||
@@ -170,7 +170,7 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
List[InterfaceNode.Method.Param.Annotation].Builder getAnnotations()
|
List[InterfaceNode.Method.Param.Annotation].Builder getAnnotations()
|
||||||
List[InterfaceNode.Method.Param.Annotation].Builder initAnnotations(int)
|
List[InterfaceNode.Method.Param.Annotation].Builder initAnnotations(int)
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
UInt16 getCodeOrder()
|
UInt16 getCodeOrder()
|
||||||
Text.Reader getName()
|
Text.Reader getName()
|
||||||
List[InterfaceNode.Method.InterfaceNode.Method.Param].Reader getParams()
|
List[InterfaceNode.Method.InterfaceNode.Method.Param].Reader getParams()
|
||||||
@@ -178,7 +178,7 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
Type getReturnType()
|
Type getReturnType()
|
||||||
List[InterfaceNode.Method.Annotation].Reader getAnnotations()
|
List[InterfaceNode.Method.Annotation].Reader getAnnotations()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
UInt16 getCodeOrder()
|
UInt16 getCodeOrder()
|
||||||
void setCodeOrder(UInt16)
|
void setCodeOrder(UInt16)
|
||||||
Text.Builder getName()
|
Text.Builder getName()
|
||||||
@@ -192,19 +192,19 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
List[InterfaceNode.Method.Annotation].Builder getAnnotations()
|
List[InterfaceNode.Method.Annotation].Builder getAnnotations()
|
||||||
List[InterfaceNode.Method.Annotation].Builder initAnnotations(int)
|
List[InterfaceNode.Method.Annotation].Builder initAnnotations(int)
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
List[InterfaceNode.InterfaceNode.Method].Reader getMethods()
|
List[InterfaceNode.InterfaceNode.Method].Reader getMethods()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
List[InterfaceNode.InterfaceNode.Method].Builder getMethods()
|
List[InterfaceNode.InterfaceNode.Method].Builder getMethods()
|
||||||
List[InterfaceNode.InterfaceNode.Method].Builder initMethods(int)
|
List[InterfaceNode.InterfaceNode.Method].Builder initMethods(int)
|
||||||
cdef cppclass Value:
|
cdef cppclass Value:
|
||||||
cppclass Body
|
cppclass Body
|
||||||
|
|
||||||
|
|
||||||
cppclass Body:
|
cppclass Body:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
int which()
|
int which()
|
||||||
UInt32 getUint32Value()
|
UInt32 getUint32Value()
|
||||||
@@ -267,21 +267,21 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
Object getObjectValue()
|
Object getObjectValue()
|
||||||
void setObjectValue(Object)
|
void setObjectValue(Object)
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
Value.Body getBody()
|
Value.Body getBody()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
Value.Body getBody()
|
Value.Body getBody()
|
||||||
void setBody(Value.Body)
|
void setBody(Value.Body)
|
||||||
cdef cppclass ConstNode:
|
cdef cppclass ConstNode:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
Type getType()
|
Type getType()
|
||||||
Value getValue()
|
Value getValue()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
Type getType()
|
Type getType()
|
||||||
void setType(Type)
|
void setType(Type)
|
||||||
Value getValue()
|
Value getValue()
|
||||||
@@ -289,10 +289,10 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
cdef cppclass Type:
|
cdef cppclass Type:
|
||||||
cppclass Body
|
cppclass Body
|
||||||
|
|
||||||
|
|
||||||
cppclass Body:
|
cppclass Body:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
int which()
|
int which()
|
||||||
Void getBoolType()
|
Void getBoolType()
|
||||||
@@ -355,44 +355,44 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
Void getInt16Type()
|
Void getInt16Type()
|
||||||
void setInt16Type(Void)
|
void setInt16Type(Void)
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
Type.Body getBody()
|
Type.Body getBody()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
Type.Body getBody()
|
Type.Body getBody()
|
||||||
void setBody(Type.Body)
|
void setBody(Type.Body)
|
||||||
cdef cppclass FileNode:
|
cdef cppclass FileNode:
|
||||||
cppclass Import
|
cppclass Import
|
||||||
|
|
||||||
|
|
||||||
cppclass Import:
|
cppclass Import:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
UInt64 getId()
|
UInt64 getId()
|
||||||
Text.Reader getName()
|
Text.Reader getName()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
UInt64 getId()
|
UInt64 getId()
|
||||||
void setId(UInt64)
|
void setId(UInt64)
|
||||||
Text.Builder getName()
|
Text.Builder getName()
|
||||||
void setName(Text)
|
void setName(Text)
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
List[FileNode.FileNode.Import].Reader getImports()
|
List[FileNode.FileNode.Import].Reader getImports()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
List[FileNode.FileNode.Import].Builder getImports()
|
List[FileNode.FileNode.Import].Builder getImports()
|
||||||
List[FileNode.FileNode.Import].Builder initImports(int)
|
List[FileNode.FileNode.Import].Builder initImports(int)
|
||||||
cdef cppclass Node:
|
cdef cppclass Node:
|
||||||
cppclass Body
|
cppclass Body
|
||||||
cppclass NestedNode
|
cppclass NestedNode
|
||||||
|
|
||||||
|
|
||||||
cppclass Body:
|
cppclass Body:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
int which()
|
int which()
|
||||||
AnnotationNode getAnnotationNode()
|
AnnotationNode getAnnotationNode()
|
||||||
@@ -416,20 +416,20 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
FileNode getFileNode()
|
FileNode getFileNode()
|
||||||
void setFileNode(FileNode)
|
void setFileNode(FileNode)
|
||||||
cppclass NestedNode:
|
cppclass NestedNode:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
Text.Reader getName()
|
Text.Reader getName()
|
||||||
UInt64 getId()
|
UInt64 getId()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
Text.Builder getName()
|
Text.Builder getName()
|
||||||
void setName(Text)
|
void setName(Text)
|
||||||
UInt64 getId()
|
UInt64 getId()
|
||||||
void setId(UInt64)
|
void setId(UInt64)
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
Node.Body getBody()
|
Node.Body getBody()
|
||||||
Text.Reader getDisplayName()
|
Text.Reader getDisplayName()
|
||||||
List[Node.Annotation].Reader getAnnotations()
|
List[Node.Annotation].Reader getAnnotations()
|
||||||
@@ -443,7 +443,7 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
bint isConst()
|
bint isConst()
|
||||||
bint isAnnotation()
|
bint isAnnotation()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
Node.Body getBody()
|
Node.Body getBody()
|
||||||
void setBody(Node.Body)
|
void setBody(Node.Body)
|
||||||
Text.Builder getDisplayName()
|
Text.Builder getDisplayName()
|
||||||
@@ -464,9 +464,9 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
bint isAnnotation()
|
bint isAnnotation()
|
||||||
cdef cppclass AnnotationNode:
|
cdef cppclass AnnotationNode:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
Bool getTargetsField()
|
Bool getTargetsField()
|
||||||
Bool getTargetsConst()
|
Bool getTargetsConst()
|
||||||
Bool getTargetsFile()
|
Bool getTargetsFile()
|
||||||
@@ -480,7 +480,7 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
Bool getTargetsInterface()
|
Bool getTargetsInterface()
|
||||||
Bool getTargetsMethod()
|
Bool getTargetsMethod()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
Bool getTargetsField()
|
Bool getTargetsField()
|
||||||
void setTargetsField(Bool)
|
void setTargetsField(Bool)
|
||||||
Bool getTargetsConst()
|
Bool getTargetsConst()
|
||||||
@@ -508,17 +508,17 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
cdef cppclass EnumNode:
|
cdef cppclass EnumNode:
|
||||||
cppclass Enumerant
|
cppclass Enumerant
|
||||||
|
|
||||||
|
|
||||||
cppclass Enumerant:
|
cppclass Enumerant:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
UInt16 getCodeOrder()
|
UInt16 getCodeOrder()
|
||||||
Text.Reader getName()
|
Text.Reader getName()
|
||||||
List[EnumNode.Enumerant.Annotation].Reader getAnnotations()
|
List[EnumNode.Enumerant.Annotation].Reader getAnnotations()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
UInt16 getCodeOrder()
|
UInt16 getCodeOrder()
|
||||||
void setCodeOrder(UInt16)
|
void setCodeOrder(UInt16)
|
||||||
Text.Builder getName()
|
Text.Builder getName()
|
||||||
@@ -526,10 +526,10 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
List[EnumNode.Enumerant.Annotation].Builder getAnnotations()
|
List[EnumNode.Enumerant.Annotation].Builder getAnnotations()
|
||||||
List[EnumNode.Enumerant.Annotation].Builder initAnnotations(int)
|
List[EnumNode.Enumerant.Annotation].Builder initAnnotations(int)
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
List[EnumNode.EnumNode.Enumerant].Reader getEnumerants()
|
List[EnumNode.EnumNode.Enumerant].Reader getEnumerants()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
List[EnumNode.EnumNode.Enumerant].Builder getEnumerants()
|
List[EnumNode.EnumNode.Enumerant].Builder getEnumerants()
|
||||||
List[EnumNode.EnumNode.Enumerant].Builder initEnumerants(int)
|
List[EnumNode.EnumNode.Enumerant].Builder initEnumerants(int)
|
||||||
cdef cppclass StructNode:
|
cdef cppclass StructNode:
|
||||||
@@ -537,27 +537,27 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
cppclass Member
|
cppclass Member
|
||||||
cppclass Field
|
cppclass Field
|
||||||
|
|
||||||
|
|
||||||
cppclass Union:
|
cppclass Union:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
UInt32 getDiscriminantOffset()
|
UInt32 getDiscriminantOffset()
|
||||||
List[StructNode.Union.StructNode.Member].Reader getMembers()
|
List[StructNode.Union.StructNode.Member].Reader getMembers()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
UInt32 getDiscriminantOffset()
|
UInt32 getDiscriminantOffset()
|
||||||
void setDiscriminantOffset(UInt32)
|
void setDiscriminantOffset(UInt32)
|
||||||
List[StructNode.Union.StructNode.Member].Builder getMembers()
|
List[StructNode.Union.StructNode.Member].Builder getMembers()
|
||||||
List[StructNode.Union.StructNode.Member].Builder initMembers(int)
|
List[StructNode.Union.StructNode.Member].Builder initMembers(int)
|
||||||
cppclass Member:
|
cppclass Member:
|
||||||
cppclass Body
|
cppclass Body
|
||||||
|
|
||||||
|
|
||||||
cppclass Body:
|
cppclass Body:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
int which()
|
int which()
|
||||||
Field getFieldMember()
|
Field getFieldMember()
|
||||||
@@ -569,14 +569,14 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
Union getUnionMember()
|
Union getUnionMember()
|
||||||
void setUnionMember(Union)
|
void setUnionMember(Union)
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
UInt16 getOrdinal()
|
UInt16 getOrdinal()
|
||||||
StructNode.Member.Body getBody()
|
StructNode.Member.Body getBody()
|
||||||
UInt16 getCodeOrder()
|
UInt16 getCodeOrder()
|
||||||
Text.Reader getName()
|
Text.Reader getName()
|
||||||
List[StructNode.Member.Annotation].Reader getAnnotations()
|
List[StructNode.Member.Annotation].Reader getAnnotations()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
UInt16 getOrdinal()
|
UInt16 getOrdinal()
|
||||||
void setOrdinal(UInt16)
|
void setOrdinal(UInt16)
|
||||||
StructNode.Member.Body getBody()
|
StructNode.Member.Body getBody()
|
||||||
@@ -588,15 +588,15 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
List[StructNode.Member.Annotation].Builder getAnnotations()
|
List[StructNode.Member.Annotation].Builder getAnnotations()
|
||||||
List[StructNode.Member.Annotation].Builder initAnnotations(int)
|
List[StructNode.Member.Annotation].Builder initAnnotations(int)
|
||||||
cppclass Field:
|
cppclass Field:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
Value getDefaultValue()
|
Value getDefaultValue()
|
||||||
Type getType()
|
Type getType()
|
||||||
UInt32 getOffset()
|
UInt32 getOffset()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
Value getDefaultValue()
|
Value getDefaultValue()
|
||||||
void setDefaultValue(Value)
|
void setDefaultValue(Value)
|
||||||
Type getType()
|
Type getType()
|
||||||
@@ -604,12 +604,12 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
UInt32 getOffset()
|
UInt32 getOffset()
|
||||||
void setOffset(UInt32)
|
void setOffset(UInt32)
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
UInt16 getDataSectionWordSize()
|
UInt16 getDataSectionWordSize()
|
||||||
List[StructNode.StructNode.Member].Reader getMembers()
|
List[StructNode.StructNode.Member].Reader getMembers()
|
||||||
UInt16 getPointerSectionSize()
|
UInt16 getPointerSectionSize()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
UInt16 getDataSectionWordSize()
|
UInt16 getDataSectionWordSize()
|
||||||
void setDataSectionWordSize(UInt16)
|
void setDataSectionWordSize(UInt16)
|
||||||
List[StructNode.StructNode.Member].Builder getMembers()
|
List[StructNode.StructNode.Member].Builder getMembers()
|
||||||
@@ -618,13 +618,13 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema":
|
|||||||
void setPointerSectionSize(UInt16)
|
void setPointerSectionSize(UInt16)
|
||||||
cdef cppclass Annotation:
|
cdef cppclass Annotation:
|
||||||
|
|
||||||
|
|
||||||
cppclass Reader:
|
cppclass Reader:
|
||||||
|
|
||||||
UInt64 getId()
|
UInt64 getId()
|
||||||
Value getValue()
|
Value getValue()
|
||||||
cppclass Builder:
|
cppclass Builder:
|
||||||
|
|
||||||
UInt64 getId()
|
UInt64 getId()
|
||||||
void setId(UInt64)
|
void setId(UInt64)
|
||||||
Value getValue()
|
Value getValue()
|
||||||
@@ -658,7 +658,7 @@ cdef extern from "capnp/message.h" namespace " ::capnp":
|
|||||||
StructNode.Builder initRootStructNode'initRoot< ::capnp::schema::StructNode>'()
|
StructNode.Builder initRootStructNode'initRoot< ::capnp::schema::StructNode>'()
|
||||||
Annotation.Builder getRootAnnotation'getRoot< ::capnp::schema::Annotation>'()
|
Annotation.Builder getRootAnnotation'getRoot< ::capnp::schema::Annotation>'()
|
||||||
Annotation.Builder initRootAnnotation'initRoot< ::capnp::schema::Annotation>'()
|
Annotation.Builder initRootAnnotation'initRoot< ::capnp::schema::Annotation>'()
|
||||||
|
|
||||||
DynamicStruct_Builder getRootDynamicStruct'getRoot< ::capnp::DynamicStruct>'(StructSchema)
|
DynamicStruct_Builder getRootDynamicStruct'getRoot< ::capnp::DynamicStruct>'(StructSchema)
|
||||||
DynamicStruct_Builder initRootDynamicStruct'initRoot< ::capnp::DynamicStruct>'(StructSchema)
|
DynamicStruct_Builder initRootDynamicStruct'initRoot< ::capnp::DynamicStruct>'(StructSchema)
|
||||||
void setRootDynamicStruct'setRoot< ::capnp::DynamicStruct::Reader>'(DynamicStruct.Reader)
|
void setRootDynamicStruct'setRoot< ::capnp::DynamicStruct::Reader>'(DynamicStruct.Reader)
|
||||||
@@ -682,7 +682,7 @@ cdef extern from "capnp/message.h" namespace " ::capnp":
|
|||||||
|
|
||||||
DynamicStruct.Reader getRootDynamicStruct'getRoot< ::capnp::DynamicStruct>'(StructSchema)
|
DynamicStruct.Reader getRootDynamicStruct'getRoot< ::capnp::DynamicStruct>'(StructSchema)
|
||||||
AnyPointer.Reader getRootAnyPointer'getRoot< ::capnp::AnyPointer>'()
|
AnyPointer.Reader getRootAnyPointer'getRoot< ::capnp::AnyPointer>'()
|
||||||
|
|
||||||
cdef cppclass MallocMessageBuilder(MessageBuilder):
|
cdef cppclass MallocMessageBuilder(MessageBuilder):
|
||||||
MallocMessageBuilder()
|
MallocMessageBuilder()
|
||||||
MallocMessageBuilder(int)
|
MallocMessageBuilder(int)
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
from .capnp.includes cimport capnp_cpp as capnp
|
from capnp.includes cimport capnp_cpp as capnp
|
||||||
from .capnp.includes cimport schema_cpp
|
from capnp.includes cimport schema_cpp
|
||||||
from .capnp.includes.capnp_cpp cimport Schema as C_Schema, StructSchema as C_StructSchema, InterfaceSchema as C_InterfaceSchema, EnumSchema as C_EnumSchema, DynamicStruct as C_DynamicStruct, DynamicValue as C_DynamicValue, Type as C_Type, DynamicList as C_DynamicList, SchemaParser as C_SchemaParser, ParsedSchema as C_ParsedSchema, VOID, ArrayPtr, StringPtr, String, StringTree, DynamicOrphan as C_DynamicOrphan, AnyPointer as C_DynamicObject, DynamicCapability as C_DynamicCapability, Request, Response, RemotePromise, PyPromise, VoidPromise, CallContext, PyRestorer, RpcSystem, makeRpcServer, makeRpcClient, Capability as C_Capability, TwoPartyVatNetwork as C_TwoPartyVatNetwork, Side, AsyncIoStream, Own, makeTwoPartyVatNetwork, PromiseFulfillerPair as C_PromiseFulfillerPair, copyPromiseFulfillerPair, newPromiseAndFulfiller, PyArray, DynamicStruct_Builder
|
from capnp.includes.capnp_cpp cimport Schema as C_Schema, StructSchema as C_StructSchema, InterfaceSchema as C_InterfaceSchema, EnumSchema as C_EnumSchema, DynamicStruct as C_DynamicStruct, DynamicValue as C_DynamicValue, Type as C_Type, DynamicList as C_DynamicList, SchemaParser as C_SchemaParser, ParsedSchema as C_ParsedSchema, VOID, ArrayPtr, StringPtr, String, StringTree, DynamicOrphan as C_DynamicOrphan, AnyPointer as C_DynamicObject, DynamicCapability as C_DynamicCapability, Request, Response, RemotePromise, PyPromise, VoidPromise, CallContext, PyRestorer, RpcSystem, makeRpcServer, makeRpcClient, Capability as C_Capability, TwoPartyVatNetwork as C_TwoPartyVatNetwork, Side, AsyncIoStream, Own, makeTwoPartyVatNetwork, PromiseFulfillerPair as C_PromiseFulfillerPair, copyPromiseFulfillerPair, newPromiseAndFulfiller, PyArray, DynamicStruct_Builder
|
||||||
from .capnp.includes.schema_cpp cimport Node as C_Node, EnumNode as C_EnumNode
|
from capnp.includes.schema_cpp cimport Node as C_Node, EnumNode as C_EnumNode
|
||||||
from .capnp.includes.types cimport *
|
from capnp.includes.types cimport *
|
||||||
from .capnp.helpers.non_circular cimport reraise_kj_exception
|
from capnp.helpers.non_circular cimport reraise_kj_exception
|
||||||
from .capnp.helpers cimport helpers
|
from capnp.helpers cimport helpers
|
||||||
|
|
||||||
|
|
||||||
cdef class _StructSchemaField:
|
cdef class _StructSchemaField:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
jinja2 >= 2.7.3
|
jinja2 >= 2.7.3
|
||||||
cython > 0.19
|
cython >= 0.21
|
||||||
setuptools >= 0.8
|
setuptools >= 0.8
|
||||||
pytest
|
pytest
|
||||||
tox
|
tox
|
||||||
|
|||||||
5
setup.py
5
setup.py
@@ -54,10 +54,9 @@ setup(
|
|||||||
packages=["capnp"],
|
packages=["capnp"],
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
package_data={'capnp': ['*.pxd', '*.h', '*.capnp', 'helpers/*.pxd', 'helpers/*.h', 'includes/*.pxd', 'lib/*.pxd', 'lib/*.py', 'lib/*.pyx', 'templates/*']},
|
package_data={'capnp': ['*.pxd', '*.h', '*.capnp', 'helpers/*.pxd', 'helpers/*.h', 'includes/*.pxd', 'lib/*.pxd', 'lib/*.py', 'lib/*.pyx', 'templates/*']},
|
||||||
ext_modules=cythonize('capnp/lib/*.pyx', language="c++"),
|
ext_modules=cythonize('capnp/lib/*.pyx'),
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'jinja2 >= 2.7.3',
|
'cython >= 0.21',
|
||||||
'cython > 0.19',
|
|
||||||
'setuptools >= 0.8'],
|
'setuptools >= 0.8'],
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts' : ['capnpc-cython = capnp._gen:main']
|
'console_scripts' : ['capnpc-cython = capnp._gen:main']
|
||||||
|
|||||||
Reference in New Issue
Block a user