diff options
author | 2018-07-31 11:43:40 -0400 | |
---|---|---|
committer | 2018-07-31 11:43:40 -0400 | |
commit | 603b82c55940cd0899b8a700676bcdadc4f2ad74 (patch) | |
tree | 7d7925b3df70f3b8c04b184f231236028d7caa4c /src/python/grpcio/grpc/_cython/_cygrpc/arguments.pyx.pxi | |
parent | a3b54ef90841ec45fe5e28f54245b7944d0904f9 (diff) |
Add a matching _unwrap_grpc_arg
Diffstat (limited to 'src/python/grpcio/grpc/_cython/_cygrpc/arguments.pyx.pxi')
-rw-r--r-- | src/python/grpcio/grpc/_cython/_cygrpc/arguments.pyx.pxi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/arguments.pyx.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/arguments.pyx.pxi index c94c03eee8..2239e26b32 100644 --- a/src/python/grpcio/grpc/_cython/_cygrpc/arguments.pyx.pxi +++ b/src/python/grpcio/grpc/_cython/_cygrpc/arguments.pyx.pxi @@ -40,12 +40,16 @@ cdef class _GrpcArgWrapper: cdef tuple _wrap_grpc_arg(grpc_arg arg): - wrapped = _GrpcArgWrapper() wrapped.arg = arg return ("grpc.python._cygrpc._GrpcArgWrapper", wrapped) +cdef grpc_arg _unwrap_grpc_arg(tuple wrapped_arg): + cdef _GrpcArgWrapper wrapped = wrapped_arg[1] + return wrapped.arg + + cdef class _ArgumentProcessor: cdef void c(self, argument, grpc_arg_pointer_vtable *vtable, references): |