4 #include <libubox/avl.h>
12 void ubus_init_id_tree(struct avl_tree *tree);
13 bool ubus_alloc_id(struct avl_tree *tree, struct ubus_id *id);
15 static inline void ubus_free_id(struct avl_tree *tree, struct ubus_id *id)
17 avl_delete(tree, &id->avl);
20 static inline struct ubus_id *ubus_find_id(struct avl_tree *tree, uint32_t id)
24 avl = avl_find(tree, &id);
28 return container_of(avl, struct ubus_id, avl);