Add result_type to InterfaceMethodSchema

This commit is contained in:
Jason Paryani
2015-07-12 12:21:29 -07:00
parent cf7a50f1d5
commit b57f0f0df8

View File

@@ -2579,6 +2579,12 @@ cdef class _InterfaceMethod:
# TODO(soon): make sure this is memory safe # TODO(soon): make sure this is memory safe
return _StructSchema()._init(self.thisptr.getParamType()) return _StructSchema()._init(self.thisptr.getParamType())
property result_type:
"""The type of this method's result struct"""
def __get__(self):
# TODO(soon): make sure this is memory safe
return _StructSchema()._init(self.thisptr.getResultType())
cdef class _InterfaceSchema: cdef class _InterfaceSchema:
cdef _init(self, C_InterfaceSchema other): cdef _init(self, C_InterfaceSchema other):
self.thisptr = other self.thisptr = other