Add helper for inlined red black tree manipulation.

SVN revision: 36164
This commit is contained in:
Cedric BAIL 2008-09-22 13:02:08 +00:00
parent 60d10a0b9e
commit 3fc07d2aac
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ struct _Eina_Rbtree
Eina_Rbtree_Color color : 1;
};
#define EINA_RBTREE Eina_Rbtree __rbtree
#define EINA_RBTREE_GET(Rbtree) &(Rbtree->__rbtree)
typedef Eina_Rbtree_Direction (*Eina_Rbtree_Cmp_Node_Cb)(const Eina_Rbtree *left, const Eina_Rbtree *right, void *data);
#define EINA_RBTREE_CMP_NODE_CB(Function) ((Eina_Rbtree_Cmp_Node_Cb) Function)