From: Howard Chu Date: Wed, 21 Sep 2005 14:46:04 +0000 (+0000) Subject: Add tavl_end and tavl_next X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~402 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aafdf48e99576ac71fb574a8da2e0a01768cded6;p=openldap Add tavl_end and tavl_next --- diff --git a/include/avl.h b/include/avl.h index 0b6ed41298..70bdbcd6cb 100644 --- a/include/avl.h +++ b/include/avl.h @@ -132,6 +132,15 @@ tavl_find LDAP_P((Avlnode *, const void*, AVL_CMP)); LDAP_AVL_F( Avlnode* ) tavl_find2 LDAP_P((Avlnode *, const void*, AVL_CMP)); +#define TAVL_DIR_LEFT 0 +#define TAVL_DIR_RIGHT 1 + +LDAP_AVL_F( Avlnode* ) +tavl_end LDAP_P((Avlnode *, int direction )); + +LDAP_AVL_F( Avlnode* ) +tavl_next LDAP_P((Avlnode *, int direction )); + /* apply traversal types */ #define AVL_PREORDER 1 #define AVL_INORDER 2