aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/support
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-10-26 08:26:22 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-10-26 08:26:22 -0700
commit1d0fce9d60494936aa0e79c6b262d113b5b1acd5 (patch)
treed24fe30fd8fe97ba7b18b434e886a89c37bd3fc5 /include/grpc++/support
parent93d802b98615570ada842aef514949780cb83988 (diff)
Add some endpoint pair tests
Diffstat (limited to 'include/grpc++/support')
-rw-r--r--include/grpc++/support/channel_arguments.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/grpc++/support/channel_arguments.h b/include/grpc++/support/channel_arguments.h
index ae243939e9..79a76d02ea 100644
--- a/include/grpc++/support/channel_arguments.h
+++ b/include/grpc++/support/channel_arguments.h
@@ -91,6 +91,13 @@ 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() {
+ grpc_channel_args out;
+ out.num_args = args_.size();
+ out.args = args_.empty() ? NULL : &args_[0];
+ return out;
+ }
+
private:
friend class SecureChannelCredentials;
friend class testing::ChannelArgumentsTest;