• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *
3  * Copyright 2018 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPCPP_IMPL_CODEGEN_CLIENT_CALLBACK_H
20 #define GRPCPP_IMPL_CODEGEN_CLIENT_CALLBACK_H
21 
22 #include <grpcpp/impl/codegen/client_callback_impl.h>
23 
24 namespace grpc {
25 
26 #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
27 template <class Response>
28 using ClientCallbackReader = ::grpc_impl::ClientCallbackReader<Response>;
29 
30 template <class Request>
31 using ClientCallbackWriter = ::grpc_impl::ClientCallbackWriter<Request>;
32 
33 template <class Request, class Response>
34 using ClientCallbackReaderWriter =
35     ::grpc_impl::ClientCallbackReaderWriter<Request, Response>;
36 
37 template <class Response>
38 using ClientReadReactor = ::grpc_impl::ClientReadReactor<Response>;
39 
40 template <class Request>
41 using ClientWriteReactor = ::grpc_impl::ClientWriteReactor<Request>;
42 
43 template <class Request, class Response>
44 using ClientBidiReactor = ::grpc_impl::ClientBidiReactor<Request, Response>;
45 
46 typedef ::grpc_impl::ClientUnaryReactor ClientUnaryReactor;
47 #endif
48 
49 // TODO(vjpai): Remove namespace experimental when de-experimentalized fully.
50 namespace experimental {
51 
52 template <class Response>
53 using ClientCallbackReader = ::grpc_impl::ClientCallbackReader<Response>;
54 
55 template <class Request>
56 using ClientCallbackWriter = ::grpc_impl::ClientCallbackWriter<Request>;
57 
58 template <class Request, class Response>
59 using ClientCallbackReaderWriter =
60     ::grpc_impl::ClientCallbackReaderWriter<Request, Response>;
61 
62 template <class Response>
63 using ClientReadReactor = ::grpc_impl::ClientReadReactor<Response>;
64 
65 template <class Request>
66 using ClientWriteReactor = ::grpc_impl::ClientWriteReactor<Request>;
67 
68 template <class Request, class Response>
69 using ClientBidiReactor = ::grpc_impl::ClientBidiReactor<Request, Response>;
70 
71 typedef ::grpc_impl::ClientUnaryReactor ClientUnaryReactor;
72 
73 }  // namespace experimental
74 }  // namespace grpc
75 
76 #endif  // GRPCPP_IMPL_CODEGEN_CLIENT_CALLBACK_H
77