Vijay Pai
4b047a3bff
Construction of streams shouldn't require triggering async ops
8 years ago
Vijay Pai
6abd20020b
Revert "Separate internal-only and public parts of C++ API"
8 years ago
Vijay Pai
c0baec60a1
Internalize structs and methods meant for being exposed through codegen
...
or that interface with core and are only for internal use
8 years ago
Jan Tattermusch
7897ae9308
auto-fix most of licenses
8 years ago
Per Grön
b50cf568d7
Emit additional headers in generated .h file instead of .cc
...
For Flatbuffers compatibility.
From what I can tell, File::additional_headers is not used by gRPC
itself or its default protobuf implementation; it was added for
Flatbuffers support (it just returns "" for protobuf).
In the Flatbuffer case, the generated header contains references to
Flatbuffer gRPC glue code which is in a header in additional_headers.
Prior to this patch, this meant that the generated .h file could not
be included unless this glue file was included first.
Because the protobuf implementation of additional_headers returns
an empty string, I think this change should be safe to do and not
have unintentional consequences.
8 years ago
Per Grön
c72b1a312c
Don't hard code protobuf specific file extensions in cpp_generator.cc
...
This file is shared with the Flatbuffers project as well, which does not
use "pb" file extensions.
8 years ago
James Eady
be6ccdbc14
Proper clang formatting.
8 years ago
James Eady
3b26451025
Add static method to generated code to return fully qualified protobuf service name.
8 years ago
Alexander Polcyn
f5521c33f9
Revert "Merge branch 'master' into v1.3.x"
...
This reverts commit 79759fea1a
, reversing
changes made to dc36f4df6a
.
8 years ago
Mahak Mukhi
ea07b60401
Post-review update
8 years ago
Mahak Mukhi
2814b5148e
formatting
8 years ago
Mahak Mukhi
529e4c5385
update according to new changes in cpp code
8 years ago
Mahak Mukhi
31d92d42ff
Initial commit: Auto-generate GMOCK code for client stub.
8 years ago
Mahak Mukhi
1383895b76
Initial commit: Auto-generate GMOCK code for client stub.
8 years ago
Craig Tiller
d4e9a4863a
Convert all async client stream types to not allocate
8 years ago
Harsh Vardhan
974f3d797a
remove lang specific streaming methods
8 years ago
Harsh Vardhan
31e74bb0f3
Update sources & headers
8 years ago
Harsh Vardhan
5b8fa87282
Refactor python code generator to support other serializers
8 years ago
Craig Tiller
5845091432
[EXPERIMENTAL] allocate unary response writer against call arena
8 years ago
yang-g
20115614e1
Stop generating method name array when there is no method.
8 years ago
Vijay Pai
713c7b87e1
clang-format
9 years ago
Vijay Pai
c0b2acb1a0
Use C++11 final and override
9 years ago
Ronak Jain
78b6cdd660
replaced protobuf tag
9 years ago
Vijay Pai
96e03110db
clang-format
9 years ago
Vijay Pai
61536a7371
Making split streaming testable
9 years ago
Vijay Pai
db5b1cbc94
Add all plumbing and typedef's for controlled server-side streaming
9 years ago
Vijay Pai
5e6edbbb69
Put a space after '<' to avoid chance of digraph
9 years ago
Vijay Pai
d4d5f4cd53
clang-format
9 years ago
Vijay Pai
a9c0d7f88b
Change names to StreamedUnary, ServerUnaryStreamer, etc. Use a templated method handler since most code shared between the new StreamedUnary and the existing BidiStreaming. Eliminate the separate enum case for streamed unary. Return a status failure if a StreamedUnary method handler doesn't actually do a write (since that is
...
violating the appearance of unary-ness)
9 years ago
Vijay Pai
cdc253535b
Remove FC_UNARY enum and treat it more like a special case of BIDI_STREAMING
...
in all cases
9 years ago
Vijay Pai
5d94118d0d
clang-format
9 years ago
Vijay Pai
ff91dea149
Be able to specify FCUnaryService just like AsyncService so that all
...
relevant methods get treated this way.
9 years ago
Vijay Pai
581097fe0d
Make FCUnary and ServerReaderWriter derived classes of a new
...
ServerReaderWriterInterface so that some functions can be made
to accept either.
9 years ago
Masood Malekghassemi
ac59245624
Clang-format all the things
9 years ago
vjpai
c0c38b1f19
Make the FCUnary class actually work and test it
9 years ago
vjpai
34edfc3ad7
Switch name to fc_unary
9 years ago
vjpai
7142a91fc9
Fix up service types and method handlers so that FC unary can work properly.
9 years ago
vjpai
ba6597f297
Actually generate code for FC Unary and make it work
9 years ago
vjpai
726561ed06
Initial definition of flow-controlled unary type along with code generation for this type
9 years ago
Vijay Pai
ce350a5925
override->GRPC_OVERRIDE
...
Remove range-based fors
9 years ago
Wouter van Oortmerssen
b695b9b035
Some additional fixes to make the C++ codegen not depend on protobuf.
9 years ago
yang-g
2e08941a37
Use the comments before syntax line as file comments.
9 years ago
yang-g
9efec8eaad
Add comments to the generated header file
9 years ago
Wouter van Oortmerssen
af09a73571
Refactored C++ code generator to not directly depend on protobuf.
...
This opens the door for other serializers (such as e.g. FlatBuffers)
to share this code generator when using GRPC.
9 years ago
Craig Tiller
6169d5f7b0
Update copyrights
9 years ago
Nicolas "Pixel" Noble
1ba1f63a03
Factorizing code out.
9 years ago
yang-g
e39cb740ca
Add a dummy reference to prevent unused variable warning if there is no rpc method defined.
9 years ago
Alistair Veitch
75d5c0f024
post merge
9 years ago
David Garcia Quintas
6bd7b97dc6
DONE!!1one
9 years ago
David Garcia Quintas
6a48405ed0
pre sync_stream.cc creation. Does not compile
9 years ago