X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_id.h;h=740e5d6243edb2eec7d55b041a85514ab143b78c;hp=ca69d9a326039dedfe89eb537cbac0821fe8956b;hb=a93b044d6a5a4bed51d776cb0950e7d20fb17b84;hpb=dbd4c2f121be08e514828f2533687b145a6e16dd diff --git a/ubusd_id.h b/ubusd_id.h index ca69d9a..740e5d6 100644 --- a/ubusd_id.h +++ b/ubusd_id.h @@ -10,7 +10,8 @@ struct ubus_id { }; void ubus_init_id_tree(struct avl_tree *tree); -bool ubus_alloc_id(struct avl_tree *tree, struct ubus_id *id); +void ubus_init_string_tree(struct avl_tree *tree, bool dup); +bool ubus_alloc_id(struct avl_tree *tree, struct ubus_id *id, uint32_t val); static inline void ubus_free_id(struct avl_tree *tree, struct ubus_id *id) {