diff options
author | yang-g <yangg@google.com> | 2015-08-21 15:49:35 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-08-21 15:49:35 -0700 |
commit | 9fb35a53320a7b958739ce01ed50de087e6c5ee9 (patch) | |
tree | b9dee466644c19f917142e24798bd6c033db2176 /src | |
parent | 9e2f90cd068b4c2a8fdec69ca93ca614d35cba28 (diff) |
split stream.h into sync_stream.h and async_stream.h
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/cpp_generator.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc index 5d82b605fb..1bf2b16ed6 100644 --- a/src/compiler/cpp_generator.cc +++ b/src/compiler/cpp_generator.cc @@ -112,13 +112,14 @@ grpc::string GetHeaderPrologue(const grpc::protobuf::FileDescriptor *file, grpc::string GetHeaderIncludes(const grpc::protobuf::FileDescriptor *file, const Parameters ¶ms) { grpc::string temp = + "#include <grpc++/support/async_stream.h>\n" "#include <grpc++/impl/rpc_method.h>\n" "#include <grpc++/impl/proto_utils.h>\n" "#include <grpc++/impl/service_type.h>\n" "#include <grpc++/support/async_unary_call.h>\n" "#include <grpc++/support/status.h>\n" - "#include <grpc++/support/stream.h>\n" "#include <grpc++/support/stub_options.h>\n" + "#include <grpc++/support/sync_stream.h>\n" "\n" "namespace grpc {\n" "class CompletionQueue;\n" @@ -706,7 +707,8 @@ grpc::string GetSourceIncludes(const grpc::protobuf::FileDescriptor *file, printer.Print(vars, "#include <grpc++/impl/rpc_service_method.h>\n"); printer.Print(vars, "#include <grpc++/impl/service_type.h>\n"); printer.Print(vars, "#include <grpc++/support/async_unary_call.h>\n"); - printer.Print(vars, "#include <grpc++/support/stream.h>\n"); + printer.Print(vars, "#include <grpc++/support/async_stream.h>\n"); + printer.Print(vars, "#include <grpc++/support/sync_stream.h>\n"); if (!file->package().empty()) { std::vector<grpc::string> parts = |