aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-06-17 18:50:55 -0700
committerGravatar GitHub <noreply@github.com>2016-06-17 18:50:55 -0700
commitb6163dfb4af3bf11df6cf3f051015ec3ee4a0f68 (patch)
tree45cb97a7e0a908af236a949834bdb26451c4ae2b /include
parent56f98620bb46560cf2cb37c409cbdf3e80986812 (diff)
parent9f5fe9ae53feacb501faf0db144db6eda2de999a (diff)
Merge pull request #6352 from ctiller/error
Unifying error handling within core
Diffstat (limited to 'include')
-rw-r--r--include/grpc/support/avl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc/support/avl.h b/include/grpc/support/avl.h
index d71592dcbc..f5bf32c719 100644
--- a/include/grpc/support/avl.h
+++ b/include/grpc/support/avl.h
@@ -88,5 +88,10 @@ GPRAPI gpr_avl gpr_avl_remove(gpr_avl avl, void *key);
does not mutate avl.
returns NULL if key is not found. */
GPRAPI void *gpr_avl_get(gpr_avl avl, void *key);
+/** Return 1 if avl contains key, 0 otherwise; if it has the key, sets *value to
+ its value*/
+GPRAPI int gpr_avl_maybe_get(gpr_avl avl, void *key, void **value);
+/** Return 1 if avl is empty, 0 otherwise */
+GPRAPI int gpr_avl_is_empty(gpr_avl avl);
#endif /* GRPC_SUPPORT_AVL_H */