Add ListSchema class
Return it whenever the appropriate Type is converted to a Schema
This commit is contained in:
@@ -140,10 +140,10 @@ cdef extern from "capnp/schema.h" namespace " ::capnp":
|
||||
cbool isStruct()
|
||||
cbool isInterface()
|
||||
|
||||
StructSchema asStruct()
|
||||
EnumSchema asEnum()
|
||||
InterfaceSchema asInterface()
|
||||
# ListSchema asList()
|
||||
StructSchema asStruct() except +reraise_kj_exception
|
||||
EnumSchema asEnum() except +reraise_kj_exception
|
||||
InterfaceSchema asInterface() except +reraise_kj_exception
|
||||
ListSchema asList() except +reraise_kj_exception
|
||||
|
||||
cdef cppclass Schema:
|
||||
Node.Reader getProto() except +reraise_kj_exception
|
||||
@@ -214,6 +214,9 @@ cdef extern from "capnp/schema.h" namespace " ::capnp":
|
||||
Enumerant getEnumerantByName(char * name)
|
||||
Node.Reader getProto()
|
||||
|
||||
cdef cppclass ListSchema:
|
||||
SchemaType getElementType()
|
||||
|
||||
cdef cppclass ConstSchema:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user