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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
465e2e11
Commit
465e2e11
authored
Jan 14, 2015
by
Craig Tiller
Browse files
Options
Downloads
Plain Diff
Merge github.com:google/grpc into api
parents
3f8bd048
f1f7213a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/compiler/cpp_generator.cc
+43
-40
43 additions, 40 deletions
src/compiler/cpp_generator.cc
src/core/support/log_posix.c
+0
-1
0 additions, 1 deletion
src/core/support/log_posix.c
test/core/util/test_config.c
+2
-6
2 additions, 6 deletions
test/core/util/test_config.c
with
45 additions
and
47 deletions
src/compiler/cpp_generator.cc
+
43
−
40
View file @
465e2e11
...
...
@@ -182,7 +182,8 @@ void PrintHeaderServerMethod(google::protobuf::io::Printer* printer,
"::grpc::ServerContext* context, const $Request$* request, "
"::grpc::ServerWriter< $Response$>* writer);
\n
"
);
}
else
if
(
BidiStreaming
(
method
))
{
printer
->
Print
(
*
vars
,
printer
->
Print
(
*
vars
,
"virtual ::grpc::Status $Method$("
"::grpc::ServerContext* context, "
"::grpc::ServerReaderWriter< $Response$, $Request$>* stream);"
...
...
@@ -269,7 +270,8 @@ void PrintSourceClientMethod(google::protobuf::io::Printer* printer,
"context, request, response);
\n
"
"}
\n\n
"
);
}
else
if
(
ClientOnlyStreaming
(
method
))
{
printer
->
Print
(
*
vars
,
printer
->
Print
(
*
vars
,
"::grpc::ClientWriter< $Request$>* $Service$::Stub::$Method$("
"::grpc::ClientContext* context, $Response$* response) {
\n
"
);
printer
->
Print
(
*
vars
,
...
...
@@ -361,7 +363,8 @@ void PrintSourceService(google::protobuf::io::Printer* printer,
const
google
::
protobuf
::
ServiceDescriptor
*
service
,
map
<
string
,
string
>*
vars
)
{
(
*
vars
)[
"Service"
]
=
service
->
name
();
printer
->
Print
(
*
vars
,
printer
->
Print
(
*
vars
,
"$Service$::Stub* $Service$::NewStub("
"const std::shared_ptr< ::grpc::ChannelInterface>& channel) {
\n
"
" $Service$::Stub* stub = new $Service$::Stub();
\n
"
...
...
...
...
This diff is collapsed.
Click to expand it.
src/core/support/log_posix.c
+
0
−
1
View file @
465e2e11
...
...
@@ -31,7 +31,6 @@
*
*/
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
#endif
...
...
...
...
This diff is collapsed.
Click to expand it.
test/core/util/test_config.c
+
2
−
6
View file @
465e2e11
...
...
@@ -39,16 +39,12 @@
#if GPR_GETPID_IN_UNISTD_H
#include
<unistd.h>
static
int
seed
()
{
return
getpid
();
}
static
int
seed
()
{
return
getpid
();
}
#endif
#if GPR_GETPID_IN_PROCESS_H
#include
<process.h>
static
int
seed
(
void
)
{
return
_getpid
();
}
static
int
seed
(
void
)
{
return
_getpid
();
}
#endif
void
grpc_test_init
(
int
argc
,
char
**
argv
)
{
...
...
...
...
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
sign in
to comment