diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-01-12 03:08:11 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-01-12 03:16:00 +0100 |
commit | 931bdceb4916f1c1942bc225be04a68fb4c81036 (patch) | |
tree | 5603cdf4d3e64fc0d02d006202f6dbdd7261ec69 /src/compiler/cpp_generator.h | |
parent | 09d8cf61b2db4d2874cec05445d4c304f11788a4 (diff) |
Letting the user override the code generation a bit.
Example of use:
protoc --grpc_out=use_system_headers=false,grpc_search_path=a/b/c/d:path/to/output/...
Diffstat (limited to 'src/compiler/cpp_generator.h')
-rw-r--r-- | src/compiler/cpp_generator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/cpp_generator.h b/src/compiler/cpp_generator.h index 70c2e985f6..03621c8794 100644 --- a/src/compiler/cpp_generator.h +++ b/src/compiler/cpp_generator.h @@ -42,6 +42,10 @@ namespace grpc_cpp_generator { struct Parameters { // Puts the service into a namespace grpc::string services_namespace; + // Use system includes (<>) or local includes ("") + bool use_system_headers; + // Prefix to any grpc include + grpc::string grpc_search_path; }; // Return the prologue of the generated header file. |