|
|
@ -94,7 +94,7 @@ void PrintSimpleSignature(Printer *printer, const MethodDescriptor *method, |
|
|
|
void PrintAdvancedSignature(Printer *printer, const MethodDescriptor *method, |
|
|
|
void PrintAdvancedSignature(Printer *printer, const MethodDescriptor *method, |
|
|
|
map< ::grpc::string, ::grpc::string> vars) { |
|
|
|
map< ::grpc::string, ::grpc::string> vars) { |
|
|
|
vars["method_name"] = "RPCTo" + vars["method_name"]; |
|
|
|
vars["method_name"] = "RPCTo" + vars["method_name"]; |
|
|
|
vars["return_type"] = "ProtoRPC *"; |
|
|
|
vars["return_type"] = "GRPCProtoCall *"; |
|
|
|
PrintMethodSignature(printer, method, vars); |
|
|
|
PrintMethodSignature(printer, method, vars); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -199,7 +199,7 @@ void PrintMethodImplementations(Printer *printer, |
|
|
|
" marshalling and parsing.\n"); |
|
|
|
" marshalling and parsing.\n"); |
|
|
|
printer.Print(vars, |
|
|
|
printer.Print(vars, |
|
|
|
"@interface $service_class$ :" |
|
|
|
"@interface $service_class$ :" |
|
|
|
" ProtoService<$service_class$>\n"); |
|
|
|
" GRPCProtoService<$service_class$>\n"); |
|
|
|
printer.Print( |
|
|
|
printer.Print( |
|
|
|
"- (instancetype)initWithHost:(NSString *)host" |
|
|
|
"- (instancetype)initWithHost:(NSString *)host" |
|
|
|
" NS_DESIGNATED_INITIALIZER;\n"); |
|
|
|
" NS_DESIGNATED_INITIALIZER;\n"); |
|
|
|