diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-04-14 13:55:03 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-04-16 09:29:17 -0700 |
commit | 3beef68d391c6c3ac83ff149b3cf67ce25c3bb72 (patch) | |
tree | cb2c518eb4d6235db146c71508607ed6e9a6ad3f /include/grpc++/impl/rpc_method.h | |
parent | 62d2896665d7685c7f2d9b29a9b3b6d4bc72719b (diff) |
Populate channel tags for methods
Diffstat (limited to 'include/grpc++/impl/rpc_method.h')
-rw-r--r-- | include/grpc++/impl/rpc_method.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/grpc++/impl/rpc_method.h b/include/grpc++/impl/rpc_method.h index 1346e0af06..3dfcdbad8f 100644 --- a/include/grpc++/impl/rpc_method.h +++ b/include/grpc++/impl/rpc_method.h @@ -45,15 +45,16 @@ class RpcMethod { BIDI_STREAMING }; - RpcMethod(const char* name, RpcType type) : name_(name), method_type_(type) {} + RpcMethod(const char* name, RpcType type, void *channel_tag) : name_(name), method_type_(type), channel_tag_(channel_tag) {} const char* name() const { return name_; } - RpcType method_type() const { return method_type_; } + void *channel_tag() const { return channel_tag_; } private: - const char* name_; + const char* const name_; const RpcType method_type_; + void * const channel_tag_; }; } // namespace grpc |