1 # Copyright 2018 The gRPC Authors 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 16 cdef void* _copy_pointer(void* pointer) 17 18 19 cdef void _destroy_pointer(void* pointer) 20 21 22 cdef int _compare_pointer(void* first_pointer, void* second_pointer) 23 24 25 cdef tuple _wrap_grpc_arg(grpc_arg arg) 26 27 28 cdef grpc_arg _unwrap_grpc_arg(tuple wrapped_arg) 29 30 31 cdef class _ArgumentProcessor: 32 33 cdef grpc_arg c_argument 34 35 cdef void c(self, argument, grpc_arg_pointer_vtable *vtable, references) 36 37 38 cdef class _ArgumentsProcessor: 39 40 cdef readonly tuple _arguments 41 cdef list _argument_processors 42 cdef readonly list _references 43 cdef grpc_channel_args _c_arguments 44 45 cdef grpc_channel_args *c(self, grpc_arg_pointer_vtable *vtable) 46 cdef un_c(self) 47