diff options
author | 2017-08-22 13:43:38 -0700 | |
---|---|---|
committer | 2017-08-22 18:56:25 -0700 | |
commit | 6a6d618034fe01b00aa192f2fb44bc9f305f0519 (patch) | |
tree | d89aea9e2d051dcd2f4f316020a4b3263f0162bb /include/grpc/grpc.h | |
parent | 2411bacd048227a68336082067950933920ba1c1 (diff) |
Prevent watching unsuppoted channels
Diffstat (limited to 'include/grpc/grpc.h')
-rw-r--r-- | include/grpc/grpc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h index 943d6e4891..5b1406b4ab 100644 --- a/include/grpc/grpc.h +++ b/include/grpc/grpc.h @@ -178,6 +178,9 @@ GRPCAPI void grpc_channel_watch_connectivity_state( grpc_channel *channel, grpc_connectivity_state last_observed_state, gpr_timespec deadline, grpc_completion_queue *cq, void *tag); +/** Check whether a grpc channel support connectivity watcher */ +GRPCAPI int grpc_channel_support_connectivity_watcher(grpc_channel *channel); + /** Create a call given a grpc_channel, in order to call 'method'. All completions are sent to 'completion_queue'. 'method' and 'host' need only live through the invocation of this function. |