diff options
Diffstat (limited to 'include/grpc++')
-rw-r--r-- | include/grpc++/support/channel_arguments.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/grpc++/support/channel_arguments.h b/include/grpc++/support/channel_arguments.h index 5879f40447..0c05f5478a 100644 --- a/include/grpc++/support/channel_arguments.h +++ b/include/grpc++/support/channel_arguments.h @@ -107,7 +107,9 @@ class ChannelArguments { /// Set a textual argument \a value under \a key. void SetString(const grpc::string& key, const grpc::string& value); - grpc_channel_args c_args() { + /// Return (by value) a c grpc_channel_args structure which points to + /// arguments owned by this ChannelArguments instance + grpc_channel_args c_channel_args() { grpc_channel_args out; out.num_args = args_.size(); out.args = args_.empty() ? NULL : &args_[0]; |