Expose some of the internal codegen interfaces

pull/19517/head
Moiz Haidry 6 years ago
parent 842a5a610f
commit d8c0182360
  1. 30
      include/grpcpp/impl/codegen/async_stream.h
  2. 10
      include/grpcpp/impl/codegen/async_unary_call.h
  3. 12
      include/grpcpp/impl/codegen/client_callback.h
  4. 39
      include/grpcpp/impl/codegen/sync_stream.h
  5. 2
      third_party/googletest
  6. 2
      third_party/protobuf

@ -22,6 +22,20 @@
#include <grpcpp/impl/codegen/async_stream_impl.h>
namespace grpc {
namespace internal {
typedef ::grpc_impl::internal::ClientAsyncStreamingInterface
ClientAsyncStreamingInterface;
template <class R>
using AsyncReaderInterface = ::grpc_impl::internal::AsyncReaderInterface<R>;
template <class W>
using AsyncWriterInterface = ::grpc_impl::internal::AsyncWriterInterface<W>;
} // namespace internal
template <class R>
using ClientAsyncReaderInterface = ::grpc_impl::ClientAsyncReaderInterface<R>;
@ -60,6 +74,22 @@ using ServerAsyncReaderWriterInterface =
template <class W, class R>
using ServerAsyncReaderWriter = ::grpc_impl::ServerAsyncReaderWriter<W, R>;
namespace internal {
template <class R>
using ClientAsyncReaderFactory =
::grpc_impl::internal::ClientAsyncReaderFactory<R>;
template <class W>
using ClientAsyncWriterFactory =
::grpc_impl::internal::ClientAsyncWriterFactory<W>;
template <class W, class R>
using ClientAsyncReaderWriterFactory =
::grpc_impl::internal::ClientAsyncReaderWriterFactory<W, R>;
} // namespace internal
} // namespace grpc
#endif // GRPCPP_IMPL_CODEGEN_ASYNC_STREAM_H

@ -22,15 +22,25 @@
#include <grpcpp/impl/codegen/async_unary_call_impl.h>
namespace grpc {
template <class R>
using ClientAsyncResponseReaderInterface =
grpc_impl::ClientAsyncResponseReaderInterface<R>;
template <class R>
using ClientAsyncResponseReader = grpc_impl::ClientAsyncResponseReader<R>;
template <class W>
using ServerAsyncResponseWriter = ::grpc_impl::ServerAsyncResponseWriter<W>;
namespace internal {
template <class R>
using ClientAsyncResponseReaderFactory =
::grpc_impl::internal::ClientAsyncResponseReaderFactory<R>;
} // namespace internal
} // namespace grpc
#endif // GRPCPP_IMPL_CODEGEN_ASYNC_UNARY_CALL_H

@ -24,6 +24,18 @@
namespace grpc {
namespace experimental {
template <class Response>
using ClientCallbackReader =
::grpc_impl::experimental::ClientCallbackReader<Response>;
template <class Request>
using ClientCallbackWriter =
::grpc_impl::experimental::ClientCallbackWriter<Request>;
template <class Request, class Response>
using ClientCallbackReaderWriter =
::grpc_impl::experimental::ClientCallbackReaderWriter<Request, Response>;
template <class Response>
using ClientReadReactor =
::grpc_impl::experimental::ClientReadReactor<Response>;

@ -22,36 +22,75 @@
#include <grpcpp/impl/codegen/sync_stream_impl.h>
namespace grpc {
namespace internal {
typedef ::grpc_impl::internal::ClientStreamingInterface
ClientStreamingInterface;
typedef ::grpc_impl::internal::ServerStreamingInterface
ServerStreamingInterface;
template <class R>
using ReaderInterface = ::grpc_impl::internal::ReaderInterface<R>;
template <class W>
using WriterInterface = ::grpc_impl::internal::WriterInterface<W>;
template <class R>
using ClientReaderFactory = ::grpc_impl::internal::ClientReaderFactory<R>;
template <class W>
using ClientWriterFactory = ::grpc_impl::internal::ClientWriterFactory<W>;
template <class W, class R>
using ClientReaderWriterFactory =
::grpc_impl::internal::ClientReaderWriterFactory<W, R>;
} // namespace internal
template <class R>
using ClientReaderInterface = ::grpc_impl::ClientReaderInterface<R>;
template <class R>
using ClientReader = ::grpc_impl::ClientReader<R>;
template <class W>
using ClientWriterInterface = ::grpc_impl::ClientWriterInterface<W>;
template <class W>
using ClientWriter = ::grpc_impl::ClientWriter<W>;
template <class W, class R>
using ClientReaderWriterInterface =
::grpc_impl::ClientReaderWriterInterface<W, R>;
template <class W, class R>
using ClientReaderWriter = ::grpc_impl::ClientReaderWriter<W, R>;
template <class R>
using ServerReaderInterface = ::grpc_impl::ServerReaderInterface<R>;
template <class R>
using ServerReader = ::grpc_impl::ServerReader<R>;
template <class W>
using ServerWriterInterface = ::grpc_impl::ServerWriterInterface<W>;
template <class W>
using ServerWriter = ::grpc_impl::ServerWriter<W>;
template <class W, class R>
using ServerReaderWriterInterface =
::grpc_impl::ServerReaderWriterInterface<W, R>;
template <class W, class R>
using ServerReaderWriter = ::grpc_impl::ServerReaderWriter<W, R>;
template <class RequestType, class ResponseType>
using ServerUnaryStreamer =
::grpc_impl::ServerUnaryStreamer<RequestType, ResponseType>;
template <class RequestType, class ResponseType>
using ServerSplitStreamer =
::grpc_impl::ServerSplitStreamer<RequestType, ResponseType>;

@ -1 +1 @@
Subproject commit 2fe3bd994b3189899d93f1d5a881e725e046fdc2
Subproject commit ec44c6c1675c25b9827aacd08c02433cccde7780

@ -1 +1 @@
Subproject commit 09745575a923640154bcf307fba8aedff47f240a
Subproject commit 582743bf40c5d3639a70f98f183914a2c0cd0680
Loading…
Cancel
Save