diff options
author | Jorge Canizales <jcanizales@google.com> | 2015-05-12 22:56:04 -0700 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2015-05-15 09:56:29 -0700 |
commit | 472f0b0a6b52119698197c221958af959f95d87f (patch) | |
tree | 16612e536a98f9fedcc9a59c13c33371b8c83ab1 /src/compiler/objective_c_plugin.cc | |
parent | 9a065d2e2f91df6ff836771a2105d2368a72b3b8 (diff) |
Fixes generated implementation file and adjusts plugin to proto3
Still missing: retrieving prefix from file option.
Diffstat (limited to 'src/compiler/objective_c_plugin.cc')
-rw-r--r-- | src/compiler/objective_c_plugin.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/objective_c_plugin.cc b/src/compiler/objective_c_plugin.cc index ef32dcc056..dec8594673 100644 --- a/src/compiler/objective_c_plugin.cc +++ b/src/compiler/objective_c_plugin.cc @@ -62,20 +62,20 @@ class ObjectiveCGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator { // Generate .pb.h - Insert(context, file_name + ".pb.h", "imports", + Insert(context, file_name + ".pbobjc.h", "imports", "#import <gRPC/ProtoService.h>\n"); - Insert(context, file_name + ".pb.h", "global_scope", + Insert(context, file_name + ".pbobjc.h", "global_scope", grpc_objective_c_generator::GetHeader(service, prefix)); // Generate .pb.m - Insert(context, file_name + ".pb.m", "imports", + Insert(context, file_name + ".pbobjc.m", "imports", "#import <gRPC/GRXWriteable.h>\n" "#import <gRPC/GRXWriter+Immediate.h>\n" "#import <gRPC/ProtoRPC.h>\n"); - Insert(context, file_name + ".pb.m", "global_scope", + Insert(context, file_name + ".pbobjc.m", "global_scope", grpc_objective_c_generator::GetSource(service, prefix)); } |