summaryrefslogtreecommitdiff
path: root/sys/include/avl.h
diff options
context:
space:
mode:
authorspew <devnull@localhost>2017-04-22 13:59:37 -0500
committerspew <devnull@localhost>2017-04-22 13:59:37 -0500
commit9cf519814591413493be10cfaa00853cb15e7a0b (patch)
treec4ad9e0e9ab31887432a8f707ae7c4fcc853c588 /sys/include/avl.h
parentf2b7f24e4e14099251dd0ed8e7e13d7ca466b0cf (diff)
libavl: lookup can return the closest match
Diffstat (limited to 'sys/include/avl.h')
-rw-r--r--sys/include/avl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/include/avl.h b/sys/include/avl.h
index 49b61fbb6..be7b18a5c 100644
--- a/sys/include/avl.h
+++ b/sys/include/avl.h
@@ -15,8 +15,9 @@ struct Avltree {
Avl *root;
};
-Avltree *avlcreate(int(*cmp)(Avl*, Avl*));
-Avl *avllookup(Avltree*, Avl*);
+Avltree *avlinit(Avltree*, int(*)(Avl*, Avl*));
+Avltree *avlcreate(int(*)(Avl*, Avl*));
+Avl *avllookup(Avltree*, Avl*, int);
Avl *avldelete(Avltree*, Avl*);
Avl *avlinsert(Avltree*, Avl*);
Avl *avlnext(Avl*);