Lines Matching refs:dnode
1000 dnode_t *dnode_init(dnode_t *dnode, void *data) in dnode_init() argument
1002 dnode->data = data; in dnode_init()
1003 dnode->parent = NULL; in dnode_init()
1004 dnode->left = NULL; in dnode_init()
1005 dnode->right = NULL; in dnode_init()
1006 return dnode; in dnode_init()
1009 void dnode_destroy(dnode_t *dnode) in dnode_destroy() argument
1011 dict_assert (!dnode_is_in_a_dict(dnode)); in dnode_destroy()
1012 free(dnode); in dnode_destroy()
1015 void *dnode_get(dnode_t *dnode) in dnode_get() argument
1017 return dnode->data; in dnode_get()
1020 const void *dnode_getkey(dnode_t *dnode) in dnode_getkey() argument
1022 return dnode->key; in dnode_getkey()
1026 void dnode_put(dnode_t *dnode, void *data) in dnode_put() argument
1028 dnode->data = data; in dnode_put()
1033 int dnode_is_in_a_dict(dnode_t *dnode) in dnode_is_in_a_dict() argument
1035 return (dnode->parent && dnode->left && dnode->right); in dnode_is_in_a_dict()