diff options
author | 2016-06-17 18:50:55 -0700 | |
---|---|---|
committer | 2016-06-17 18:50:55 -0700 | |
commit | b6163dfb4af3bf11df6cf3f051015ec3ee4a0f68 (patch) | |
tree | 45cb97a7e0a908af236a949834bdb26451c4ae2b /include | |
parent | 56f98620bb46560cf2cb37c409cbdf3e80986812 (diff) | |
parent | 9f5fe9ae53feacb501faf0db144db6eda2de999a (diff) |
Merge pull request #6352 from ctiller/error
Unifying error handling within core
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/support/avl.h | 5 |
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 */ |