aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-09-01 18:23:55 +0200
committerGravatar David Garcia Quintas <dgq@google.com>2016-09-01 18:23:55 +0200
commit410208c25ce06aff6a0d5ac242dd5a37bfa140c3 (patch)
treeca63f76a26fb13b9455915b732d760807fbbc06c /include/grpc++
parent1dddf9ca965fb25e193fabda6b7260435677a0e4 (diff)
parent9d7e049d03cedca3b4b0e08d0cba1d1e718fa8ae (diff)
Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/impl/codegen/client_context.h4
-rw-r--r--include/grpc++/impl/codegen/server_context.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc++/impl/codegen/client_context.h b/include/grpc++/impl/codegen/client_context.h
index 247d14d124..eaa36de14f 100644
--- a/include/grpc++/impl/codegen/client_context.h
+++ b/include/grpc++/impl/codegen/client_context.h
@@ -305,6 +305,10 @@ class ClientContext {
};
static void SetGlobalCallbacks(GlobalCallbacks* callbacks);
+ // Should be used for framework-level extensions only.
+ // Applications never need to call this method.
+ grpc_call* c_call() { return call_; }
+
private:
// Disallow copy and assign.
ClientContext(const ClientContext&);
diff --git a/include/grpc++/impl/codegen/server_context.h b/include/grpc++/impl/codegen/server_context.h
index d1018418d3..e1102e7be8 100644
--- a/include/grpc++/impl/codegen/server_context.h
+++ b/include/grpc++/impl/codegen/server_context.h
@@ -165,6 +165,10 @@ class ServerContext {
async_notify_when_done_tag_ = tag;
}
+ // Should be used for framework-level extensions only.
+ // Applications never need to call this method.
+ grpc_call* c_call() { return call_; }
+
private:
friend class ::grpc::testing::InteropServerContextInspector;
friend class ::grpc::ServerInterface;