aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/impl
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-04-05 15:14:30 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-04-05 15:14:30 -0700
commitfa416cbe3ba9b2f31666932235407c1c7d5e4e6f (patch)
tree8e310896674b0398e9d01e160baced53e15f3cbf /include/grpc++/impl
parent9a29464d6786fdc54ab6cb636bcfeb11845df557 (diff)
Dont break codegen barrier
Diffstat (limited to 'include/grpc++/impl')
-rw-r--r--include/grpc++/impl/codegen/async_unary_call.h5
-rw-r--r--include/grpc++/impl/codegen/core_codegen.h1
-rw-r--r--include/grpc++/impl/codegen/core_codegen_interface.h1
3 files changed, 4 insertions, 3 deletions
diff --git a/include/grpc++/impl/codegen/async_unary_call.h b/include/grpc++/impl/codegen/async_unary_call.h
index b120b37f1f..13b0cc419c 100644
--- a/include/grpc++/impl/codegen/async_unary_call.h
+++ b/include/grpc++/impl/codegen/async_unary_call.h
@@ -42,8 +42,6 @@
#include <grpc++/impl/codegen/service_type.h>
#include <grpc++/impl/codegen/status.h>
-extern "C" void* grpc_call_arena_alloc(grpc_call* call, size_t size);
-
namespace grpc {
class CompletionQueue;
@@ -69,7 +67,8 @@ class ClientAsyncResponseReader final
const W& request) {
Call call = channel->CreateCall(method, context, cq);
ClientAsyncResponseReader* reader =
- new (grpc_call_arena_alloc(call.call(), sizeof(*reader)))
+ new (g_core_codegen_interface->grpc_call_arena_alloc(call.call(),
+ sizeof(*reader)))
ClientAsyncResponseReader(call, context);
reader->init_buf_.SendInitialMetadata(context->send_initial_metadata_,
diff --git a/include/grpc++/impl/codegen/core_codegen.h b/include/grpc++/impl/codegen/core_codegen.h
index a5f762e21d..90bb658455 100644
--- a/include/grpc++/impl/codegen/core_codegen.h
+++ b/include/grpc++/impl/codegen/core_codegen.h
@@ -66,6 +66,7 @@ class CoreCodegen : public CoreCodegenInterface {
void grpc_call_ref(grpc_call* call) override;
void grpc_call_unref(grpc_call* call) override;
+ virtual void* grpc_call_arena_alloc(grpc_call* call, size_t length) override;
void grpc_byte_buffer_destroy(grpc_byte_buffer* bb) override;
diff --git a/include/grpc++/impl/codegen/core_codegen_interface.h b/include/grpc++/impl/codegen/core_codegen_interface.h
index a3df913c26..8833de0748 100644
--- a/include/grpc++/impl/codegen/core_codegen_interface.h
+++ b/include/grpc++/impl/codegen/core_codegen_interface.h
@@ -96,6 +96,7 @@ class CoreCodegenInterface {
virtual void grpc_call_ref(grpc_call* call) = 0;
virtual void grpc_call_unref(grpc_call* call) = 0;
+ virtual void* grpc_call_arena_alloc(grpc_call* call, size_t length) = 0;
virtual grpc_slice grpc_empty_slice() = 0;
virtual grpc_slice grpc_slice_malloc(size_t length) = 0;