diff options
author | Per Grön <peck@spotify.com> | 2017-05-11 08:06:46 +0200 |
---|---|---|
committer | Per Grön <peck@spotify.com> | 2017-05-11 08:06:46 +0200 |
commit | c72b1a312ce90453b5189e6f1e6648eaecebffa0 (patch) | |
tree | 79fef068d16d34ab74fb88fb1c3326e8c9ad81f6 /src/compiler/config.h | |
parent | 8aa652ff8321132c4b63719bb4e1982f7804248f (diff) |
Don't hard code protobuf specific file extensions in cpp_generator.cc
This file is shared with the Flatbuffers project as well, which does not
use "pb" file extensions.
Diffstat (limited to 'src/compiler/config.h')
-rw-r--r-- | src/compiler/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/config.h b/src/compiler/config.h index ba44cd8a31..fbc3e8fd71 100644 --- a/src/compiler/config.h +++ b/src/compiler/config.h @@ -96,4 +96,11 @@ typedef GRPC_CUSTOM_STRINGOUTPUTSTREAM StringOutputStream; } // namespace protobuf } // namespace grpc +namespace grpc_cpp_generator { + +static const char * const kCppGeneratorMessageHeaderExt = ".pb.h"; +static const char * const kCppGeneratorServiceHeaderExt = ".grpc.pb.h"; + +} // namespace grpc_cpp_generator + #endif // SRC_COMPILER_CONFIG_H |