diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-06-11 23:15:09 -0700 |
---|---|---|
committer | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-06-11 23:15:09 -0700 |
commit | 8af419a9b2dd9fe99b86826ff5ff49f67668eb81 (patch) | |
tree | 318991b98cd1243bfb407fdf874c9f2bfe76c8a8 | |
parent | feecfdf81f32e30bad2d286045f1f27b16e4c309 (diff) | |
parent | eb741d1772101852e8b5ff8e3d764691e2b62ab8 (diff) |
Merge pull request #2043 from jtattermusch/csharp_fix_native_callback_test
Fix native callback signature to match with C#
-rw-r--r-- | src/csharp/ext/grpc_csharp_ext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/csharp/ext/grpc_csharp_ext.c b/src/csharp/ext/grpc_csharp_ext.c index 59b8993ad3..8337218255 100644 --- a/src/csharp/ext/grpc_csharp_ext.c +++ b/src/csharp/ext/grpc_csharp_ext.c @@ -65,8 +65,6 @@ grpc_byte_buffer *string_to_byte_buffer(const char *buffer, size_t len) { return bb; } -typedef void(GPR_CALLTYPE *callback_funcptr)(gpr_int32 success, void *batch_context); - /* * Helper to maintain lifetime of batch op inputs and store batch op outputs. */ @@ -731,10 +729,12 @@ GPR_EXPORT void GPR_CALLTYPE grpcsharp_redirect_log(grpcsharp_log_func func) { gpr_set_log_function(grpcsharp_log_handler); } +typedef void(GPR_CALLTYPE *test_callback_funcptr)(gpr_int32 success); + /* For testing */ GPR_EXPORT void GPR_CALLTYPE -grpcsharp_test_callback(callback_funcptr callback) { - callback(1, NULL); +grpcsharp_test_callback(test_callback_funcptr callback) { + callback(1); } /* For testing */ |