Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
9fce4554
Commit
9fce4554
authored
9 years ago
by
Jorge Canizales
Browse files
Options
Downloads
Patches
Plain Diff
Fixup codegen now that GRXWriter is a class
parent
f87a0984
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/compiler/objective_c_generator.cc
+0
-3
0 additions, 3 deletions
src/compiler/objective_c_generator.cc
src/compiler/objective_c_plugin.cc
+3
-2
3 additions, 2 deletions
src/compiler/objective_c_plugin.cc
with
3 additions
and
5 deletions
src/compiler/objective_c_generator.cc
+
0
−
3
View file @
9fce4554
...
...
@@ -186,9 +186,6 @@ string GetHeader(const ServiceDescriptor *service) {
grpc
::
protobuf
::
io
::
StringOutputStream
output_stream
(
&
output
);
Printer
printer
(
&
output_stream
,
'$'
);
printer
.
Print
(
"@protocol GRXWriteable;
\n
"
);
printer
.
Print
(
"@protocol GRXWriter;
\n\n
"
);
map
<
string
,
string
>
vars
=
{{
"service_class"
,
ServiceClassName
(
service
)}};
printer
.
Print
(
vars
,
"@protocol $service_class$ <NSObject>
\n\n
"
);
...
...
This diff is collapsed.
Click to expand it.
src/compiler/objective_c_plugin.cc
+
3
−
2
View file @
9fce4554
...
...
@@ -63,7 +63,9 @@ class ObjectiveCGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
// Generate .pbrpc.h
string
imports
=
string
(
"#import
\"
"
)
+
file_name
+
".pbobjc.h
\"\n\n
"
"#import <ProtoRPC/ProtoService.h>
\n
"
;
"#import <ProtoRPC/ProtoService.h>
\n
"
"#import <RxLibrary/GRXWriteable.h>
\n
"
"#import <RxLibrary/GRXWriter.h>
\n
"
;
// TODO(jcanizales): Instead forward-declare the input and output types
// and import the files in the .pbrpc.m
...
...
@@ -89,7 +91,6 @@ class ObjectiveCGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
string
imports
=
string
(
"#import
\"
"
)
+
file_name
+
".pbrpc.h
\"\n\n
"
"#import <ProtoRPC/ProtoRPC.h>
\n
"
"#import <RxLibrary/GRXWriteable.h>
\n
"
"#import <RxLibrary/GRXWriter+Immediate.h>
\n
"
;
string
definitions
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment