aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/grpc.h
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2017-08-22 13:43:38 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2017-08-22 18:56:25 -0700
commit6a6d618034fe01b00aa192f2fb44bc9f305f0519 (patch)
treed89aea9e2d051dcd2f4f316020a4b3263f0162bb /include/grpc/grpc.h
parent2411bacd048227a68336082067950933920ba1c1 (diff)
Prevent watching unsuppoted channels
Diffstat (limited to 'include/grpc/grpc.h')
-rw-r--r--include/grpc/grpc.h3
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.