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
44553b58
Commit
44553b58
authored
Feb 25, 2015
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
clang-format
parent
b17b00b5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/csharp/ext/grpc_csharp_ext.c
+21
-21
21 additions, 21 deletions
src/csharp/ext/grpc_csharp_ext.c
with
21 additions
and
21 deletions
src/csharp/ext/grpc_csharp_ext.c
+
21
−
21
View file @
44553b58
...
...
@@ -346,14 +346,19 @@ grpcsharp_call_start_unary(grpc_call *call, callback_funcptr callback,
/* Synchronous unary call */
GPR_EXPORT
void
GPR_CALLTYPE
grpcsharp_call_blocking_unary
(
grpc_call
*
call
,
grpc_completion_queue
*
dedicated_cq
,
callback_funcptr
callback
,
grpcsharp_call_blocking_unary
(
grpc_call
*
call
,
grpc_completion_queue
*
dedicated_cq
,
callback_funcptr
callback
,
const
char
*
send_buffer
,
size_t
send_buffer_len
)
{
GPR_ASSERT
(
grpcsharp_call_start_unary
(
call
,
callback
,
send_buffer
,
send_buffer_len
)
==
GRPC_CALL_OK
);
GPR_ASSERT
(
grpcsharp_call_start_unary
(
call
,
callback
,
send_buffer
,
send_buffer_len
)
==
GRPC_CALL_OK
);
/* TODO: we would like to use pluck, but we don't know the tag */
GPR_ASSERT
(
grpcsharp_completion_queue_next_with_callback
(
dedicated_cq
)
==
GRPC_OP_COMPLETE
);
GPR_ASSERT
(
grpcsharp_completion_queue_next_with_callback
(
dedicated_cq
)
==
GRPC_OP_COMPLETE
);
grpc_completion_queue_shutdown
(
dedicated_cq
);
GPR_ASSERT
(
grpcsharp_completion_queue_next_with_callback
(
dedicated_cq
)
==
GRPC_QUEUE_SHUTDOWN
);
GPR_ASSERT
(
grpcsharp_completion_queue_next_with_callback
(
dedicated_cq
)
==
GRPC_QUEUE_SHUTDOWN
);
}
GPR_EXPORT
grpc_call_error
GPR_CALLTYPE
...
...
@@ -582,8 +587,7 @@ grpcsharp_server_request_call(grpc_server *server, grpc_completion_queue *cq,
/* Logging */
typedef
void
(
GPR_CALLTYPE
*
grpcsharp_log_func
)(
const
char
*
file
,
gpr_int32
line
,
typedef
void
(
GPR_CALLTYPE
*
grpcsharp_log_func
)(
const
char
*
file
,
gpr_int32
line
,
gpr_uint64
thd_id
,
const
char
*
severity_string
,
const
char
*
msg
);
...
...
@@ -595,8 +599,7 @@ static void grpcsharp_log_handler(gpr_log_func_args *args) {
gpr_log_severity_string
(
args
->
severity
),
args
->
message
);
}
GPR_EXPORT
void
GPR_CALLTYPE
grpcsharp_redirect_log
(
grpcsharp_log_func
func
)
{
GPR_EXPORT
void
GPR_CALLTYPE
grpcsharp_redirect_log
(
grpcsharp_log_func
func
)
{
GPR_ASSERT
(
func
);
log_func
=
func
;
gpr_set_log_function
(
grpcsharp_log_handler
);
...
...
@@ -609,7 +612,4 @@ grpcsharp_test_callback(callback_funcptr callback) {
}
/* For testing */
GPR_EXPORT
void
*
GPR_CALLTYPE
grpcsharp_test_nop
(
void
*
ptr
)
{
return
ptr
;
}
GPR_EXPORT
void
*
GPR_CALLTYPE
grpcsharp_test_nop
(
void
*
ptr
)
{
return
ptr
;
}
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