|
|
|
@ -39,7 +39,7 @@ static int cmp_pointer_arg(void *p, void *q) { return p == q; } |
|
|
|
|
static const grpc_arg_pointer_vtable objc_arg_vtable = {copy_pointer_arg, destroy_pointer_arg, |
|
|
|
|
cmp_pointer_arg}; |
|
|
|
|
|
|
|
|
|
void FreeChannelArgs(grpc_channel_args *channel_args) { |
|
|
|
|
void GRPCFreeChannelArgs(grpc_channel_args *channel_args) { |
|
|
|
|
for (size_t i = 0; i < channel_args->num_args; ++i) { |
|
|
|
|
grpc_arg *arg = &channel_args->args[i]; |
|
|
|
|
gpr_free(arg->key); |
|
|
|
@ -58,7 +58,7 @@ void FreeChannelArgs(grpc_channel_args *channel_args) { |
|
|
|
|
* value responds to @c @selector(intValue). Otherwise, an exception will be raised. The caller of |
|
|
|
|
* this function is responsible for calling @c freeChannelArgs on a non-NULL returned value. |
|
|
|
|
*/ |
|
|
|
|
grpc_channel_args *BuildChannelArgs(NSDictionary *dictionary) { |
|
|
|
|
grpc_channel_args *GRPCBuildChannelArgs(NSDictionary *dictionary) { |
|
|
|
|
if (!dictionary) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|