diff options
author | Craig Tiller <ctiller@google.com> | 2016-09-28 14:22:12 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-09-28 14:22:12 -0700 |
commit | db1a5cce471cb038953f4221401142da85c2412a (patch) | |
tree | b56f4abfacd665381974819446c8f6f67f0d6040 /include/grpc++/support | |
parent | 42ee4d86b9fb3d47f6aa59fca5a2e2b0da1f092d (diff) |
Buffer pool C++ wrapper
Diffstat (limited to 'include/grpc++/support')
-rw-r--r-- | include/grpc++/support/channel_arguments.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc++/support/channel_arguments.h b/include/grpc++/support/channel_arguments.h index ae243939e9..e6fdc3bf17 100644 --- a/include/grpc++/support/channel_arguments.h +++ b/include/grpc++/support/channel_arguments.h @@ -46,6 +46,8 @@ namespace testing { class ChannelArgumentsTest; } // namespace testing +class BufferPool; + /// Options for channel creation. The user can use generic setters to pass /// key value pairs down to c channel creation code. For grpc related options, /// concrete setters are provided. @@ -80,6 +82,9 @@ class ChannelArguments { /// The given string will be sent at the front of the user agent string. void SetUserAgentPrefix(const grpc::string& user_agent_prefix); + /// The given buffer pool will be attached to the constructed channel + void SetBufferPool(const BufferPool& buffer_pool); + // Generic channel argument setters. Only for advanced use cases. /// Set an integer argument \a value under \a key. void SetInt(const grpc::string& key, int value); @@ -88,6 +93,9 @@ class ChannelArguments { /// Set a pointer argument \a value under \a key. Owership is not transferred. void SetPointer(const grpc::string& key, void* value); + void SetPointerWithVtable(const grpc::string& key, void* value, + const grpc_arg_pointer_vtable* vtable); + /// Set a textual argument \a value under \a key. void SetString(const grpc::string& key, const grpc::string& value); |