aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar Bogdan Drutu <bdrutu@google.com>2015-12-11 19:48:19 -0800
committerGravatar Bogdan Drutu <bdrutu@google.com>2015-12-11 19:48:19 -0800
commit42ab3fa5fa1c6ab93110b32bb2bd88a8a2bf631e (patch)
treea32e288d9cd5217097b901adb9d4fd53b9bb1a55 /include/grpc++
parent38d2ad6e96b5fc2f7ee3ae7e82b81983afe50874 (diff)
Add a destructor callback as well
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/client_context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc++/client_context.h b/include/grpc++/client_context.h
index d3f23fe047..8e7c3579e3 100644
--- a/include/grpc++/client_context.h
+++ b/include/grpc++/client_context.h
@@ -283,10 +283,11 @@ class ClientContext {
/// Global Callbacks
///
/// Can be set exactly once per application to install hooks whenever
- /// a client context is constructed.
+ /// a client context is constructed and destructed.
class GlobalCallbacks {
public:
virtual void DefaultConstructor(ClientContext* context) = 0;
+ virtual void Destructor(ClientContext* context) = 0;
};
static void SetGlobalCallbacks(GlobalCallbacks* callbacks);