diff options
author | Nicolas Noble <nnoble@google.com> | 2015-03-12 17:22:33 -0700 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-03-13 02:03:01 +0100 |
commit | d446eb86fae18df3c473c96676da5bcf4f69178c (patch) | |
tree | bd1d84ca73d0694e2eaad96583e67b7a5de3ab01 /src/compiler/cpp_generator.h | |
parent | e758ed16aa0fe3ec085f45a4c1ad642b8ddd50fc (diff) |
Adding initial support for alternative protobuf libraries.
Diffstat (limited to 'src/compiler/cpp_generator.h')
-rw-r--r-- | src/compiler/cpp_generator.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/compiler/cpp_generator.h b/src/compiler/cpp_generator.h index 1bfe5a8819..2ecdb5c47e 100644 --- a/src/compiler/cpp_generator.h +++ b/src/compiler/cpp_generator.h @@ -34,27 +34,21 @@ #ifndef GRPC_INTERNAL_COMPILER_CPP_GENERATOR_H #define GRPC_INTERNAL_COMPILER_CPP_GENERATOR_H -#include <string> - -namespace google { -namespace protobuf { -class FileDescriptor; -} // namespace protobuf -} // namespace google +#include "src/compiler/config.h" namespace grpc_cpp_generator { // Return the includes needed for generated header file. -std::string GetHeaderIncludes(const google::protobuf::FileDescriptor *file); +grpc::string GetHeaderIncludes(const grpc::protobuf::FileDescriptor *file); // Return the includes needed for generated source file. -std::string GetSourceIncludes(); +grpc::string GetSourceIncludes(); // Return the services for generated header file. -std::string GetHeaderServices(const google::protobuf::FileDescriptor *file); +grpc::string GetHeaderServices(const grpc::protobuf::FileDescriptor *file); // Return the services for generated source file. -std::string GetSourceServices(const google::protobuf::FileDescriptor *file); +grpc::string GetSourceServices(const grpc::protobuf::FileDescriptor *file); } // namespace grpc_cpp_generator |