diff options
author | Bogdan Drutu <bdrutu@google.com> | 2015-12-11 19:48:19 -0800 |
---|---|---|
committer | Bogdan Drutu <bdrutu@google.com> | 2015-12-11 19:48:19 -0800 |
commit | 42ab3fa5fa1c6ab93110b32bb2bd88a8a2bf631e (patch) | |
tree | a32e288d9cd5217097b901adb9d4fd53b9bb1a55 /include/grpc++ | |
parent | 38d2ad6e96b5fc2f7ee3ae7e82b81983afe50874 (diff) |
Add a destructor callback as well
Diffstat (limited to 'include/grpc++')
-rw-r--r-- | include/grpc++/client_context.h | 3 |
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); |