diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-04 15:54:40 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-04 15:54:40 -0700 |
commit | ee787caf0eb143f00092756bafcdb0f82f5f1a55 (patch) | |
tree | 2aaad2634072633ffdc98452e5c9413a2a9fa279 /src/core/lib/channel/channel_args.c | |
parent | 94736b9d67733b3a86ae1f405c5edcd385edcb5f (diff) | |
parent | c02f36bc9ec4baab246c1bd869d679ed19ab8580 (diff) |
Merge github.com:grpc/grpc into truebin
Diffstat (limited to 'src/core/lib/channel/channel_args.c')
-rw-r--r-- | src/core/lib/channel/channel_args.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/lib/channel/channel_args.c b/src/core/lib/channel/channel_args.c index 1a099ac437..a6d124c719 100644 --- a/src/core/lib/channel/channel_args.c +++ b/src/core/lib/channel/channel_args.c @@ -346,3 +346,10 @@ int grpc_channel_arg_get_integer(grpc_arg *arg, grpc_integer_options options) { } return arg->value.integer; } + +bool grpc_channel_args_want_minimal_stack(const grpc_channel_args *args) { + const grpc_arg *arg = grpc_channel_args_find(args, GRPC_ARG_MINIMAL_STACK); + if (arg == NULL) return false; + if (arg->type == GRPC_ARG_INTEGER && arg->value.integer == 0) return false; + return true; +} |