From b57f0f0df8962c45aec5e3ae1ad10c309f0394ba Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Sun, 12 Jul 2015 12:21:29 -0700 Subject: [PATCH] Add `result_type` to InterfaceMethodSchema --- capnp/lib/capnp.pyx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index 8d84517..19b7acf 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -2579,6 +2579,12 @@ cdef class _InterfaceMethod: # TODO(soon): make sure this is memory safe 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 _init(self, C_InterfaceSchema other): self.thisptr = other