diff options
author | yang-g <yangg@google.com> | 2015-08-20 10:59:29 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-08-20 10:59:29 -0700 |
commit | 431f8c2b5feecf202c484f6d0d1d7a0cf6f4be73 (patch) | |
tree | 440c1c9b18b776d79739e8c3620df6be6e3d42ad /include/grpc++/channel.h | |
parent | 8c2be9f22807870585111d88f5168dd11da99ce1 (diff) |
make registermethod private
Diffstat (limited to 'include/grpc++/channel.h')
-rw-r--r-- | include/grpc++/channel.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/grpc++/channel.h b/include/grpc++/channel.h index a4cef1b4d9..ceb921eff8 100644 --- a/include/grpc++/channel.h +++ b/include/grpc++/channel.h @@ -94,9 +94,6 @@ class Channel GRPC_FINAL : public GrpcLibrary, return WaitForStateChangeImpl(last_observed, deadline_tp.raw_time()); } - // Used by Stub only in generated code. - void* RegisterMethod(const char* method); - private: template <class R> friend class ::grpc::ClientReader; @@ -117,10 +114,12 @@ class Channel GRPC_FINAL : public GrpcLibrary, ClientContext* context, const InputMessage& request, OutputMessage* result); + friend class ::grpc::RpcMethod; Call CreateCall(const RpcMethod& method, ClientContext* context, CompletionQueue* cq); void PerformOpsOnCall(CallOpSetInterface* ops, Call* call); + void* RegisterMethod(const char* method); void NotifyOnStateChangeImpl(grpc_connectivity_state last_observed, gpr_timespec deadline, CompletionQueue* cq, |