aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/csharp_plugin.cc
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-04-25 14:51:05 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-04-26 18:01:35 -0700
commita967ee567e24c998b45560ba3e32032d7791649b (patch)
treef125f9c30eaf1279702a69b5a01021afe306eed5 /src/compiler/csharp_plugin.cc
parent44f7c54847d4f733c681c87952afb95be8c54eb6 (diff)
support custom parsegeneratorparameter
Diffstat (limited to 'src/compiler/csharp_plugin.cc')
-rw-r--r--src/compiler/csharp_plugin.cc3
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 &parameter,
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