diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-10-20 23:17:32 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-10-20 23:17:32 +0300 |
commit | a94fbfd84426fa892500127780739999e62ffc61 (patch) | |
tree | 36cc201b5ef9023aa6b90b799fdf55e8371e77ac /libsunavl.h | |
parent | 820c032f961156d4f8df3d71b77021661cfe46b8 (diff) | |
parent | 74adf174073b1e8927095059e14c3077f02168aa (diff) | |
download | libsunavl-a94fbfd84426fa892500127780739999e62ffc61.tar.gz |
Merge tag 'upstream/1.2'
Diffstat (limited to 'libsunavl.h')
-rw-r--r-- | libsunavl.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libsunavl.h b/libsunavl.h index 4e0a2b4..658060e 100644 --- a/libsunavl.h +++ b/libsunavl.h @@ -28,6 +28,10 @@ * Portions copyright 2013 Igor Pashev <pashev.igor@gmail.com> */ +/* + * Copyright (c) 2014 by Delphix. All rights reserved. + */ + /* Just a wrapper, but intended to be the only public interface */ #ifndef _LIBSUNAVL_H @@ -95,7 +99,7 @@ extern void avl_insert(avl_tree_t *tree, void *node, avl_index_t where); * Insert "new_data" in "tree" in the given "direction" either after * or before the data "here". * - * This might be usefull for avl clients caching recently accessed + * This might be useful for avl clients caching recently accessed * data to avoid doing avl_find() again for insertion. * * new_data - new data to insert @@ -185,6 +189,11 @@ extern int avl_update_lt(avl_tree_t *, void *); extern int avl_update_gt(avl_tree_t *, void *); /* + * Swaps the contents of the two trees. + */ +extern void avl_swap(avl_tree_t *tree1, avl_tree_t *tree2); + +/* * Return the number of nodes in the tree */ extern size_t avl_numnodes(avl_tree_t *tree); |