diff options
author | David Garcia Quintas <dgq@google.com> | 2016-01-14 18:00:04 -0800 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-01-15 16:49:16 -0800 |
commit | 44f3249018480c7ef14ff5fdc4a13462124c34e6 (patch) | |
tree | 8ba6abd9cc53b7ad3986d5341fb50bb3a86a812e /include/grpc++/generic | |
parent | ec0d07f58e054e0043168e8aba8f6755ac8706ca (diff) |
Introduced ServerInterface
Diffstat (limited to 'include/grpc++/generic')
-rw-r--r-- | include/grpc++/generic/async_generic_service.h | 3 | ||||
-rw-r--r-- | include/grpc++/generic/generic_stub.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/grpc++/generic/async_generic_service.h b/include/grpc++/generic/async_generic_service.h index 33045b8d85..36ef8fc850 100644 --- a/include/grpc++/generic/async_generic_service.h +++ b/include/grpc++/generic/async_generic_service.h @@ -51,6 +51,7 @@ class GenericServerContext GRPC_FINAL : public ServerContext { private: friend class Server; + friend class ServerInterface; grpc::string method_; grpc::string host_; @@ -76,4 +77,4 @@ class AsyncGenericService GRPC_FINAL { } // namespace grpc -#endif // GRPCXX_GENERIC_ASYNC_GENERIC_SERVICE_H
\ No newline at end of file +#endif // GRPCXX_GENERIC_ASYNC_GENERIC_SERVICE_H diff --git a/include/grpc++/generic/generic_stub.h b/include/grpc++/generic/generic_stub.h index 1bb7900b06..cd8fb54aed 100644 --- a/include/grpc++/generic/generic_stub.h +++ b/include/grpc++/generic/generic_stub.h @@ -47,7 +47,7 @@ typedef ClientAsyncReaderWriter<ByteBuffer, ByteBuffer> // by name. class GenericStub GRPC_FINAL { public: - explicit GenericStub(std::shared_ptr<Channel> channel) : channel_(channel) {} + explicit GenericStub(std::shared_ptr<ChannelInterface> channel) : channel_(channel) {} // begin a call to a named method std::unique_ptr<GenericClientAsyncReaderWriter> Call( @@ -55,7 +55,7 @@ class GenericStub GRPC_FINAL { void* tag); private: - std::shared_ptr<Channel> channel_; + std::shared_ptr<ChannelInterface> channel_; }; } // namespace grpc |