diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2016-04-25 14:51:05 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2016-04-26 18:01:35 -0700 |
commit | a967ee567e24c998b45560ba3e32032d7791649b (patch) | |
tree | f125f9c30eaf1279702a69b5a01021afe306eed5 /src/compiler/csharp_plugin.cc | |
parent | 44f7c54847d4f733c681c87952afb95be8c54eb6 (diff) |
support custom parsegeneratorparameter
Diffstat (limited to 'src/compiler/csharp_plugin.cc')
-rw-r--r-- | src/compiler/csharp_plugin.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/csharp_plugin.cc b/src/compiler/csharp_plugin.cc index 8b9395f9e2..bc86fbd616 100644 --- a/src/compiler/csharp_plugin.cc +++ b/src/compiler/csharp_plugin.cc @@ -48,6 +48,9 @@ class CSharpGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { const grpc::string ¶meter, grpc::protobuf::compiler::GeneratorContext *context, grpc::string *error) const { + std::vector<std::pair<grpc::string, grpc::string> > options; + grpc::protobuf::compiler::ParseGeneratorParameter(parameter, &options); + grpc::string code = grpc_csharp_generator::GetServices(file); if (code.size() == 0) { return true; // don't generate a file if there are no services |