X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_id.h;h=0c8524850ad4f99085624c7ae61d0c3bc415024b;hp=2b4cb6d8669332fe7d51566fc40bdc2f554acfef;hb=ba607d976b77c40162637d354fd8e1560384a66d;hpb=d80ebf55afcde808265e4702c162d6b40d649260 diff --git a/ubusd_id.h b/ubusd_id.h index 2b4cb6d..0c85248 100644 --- a/ubusd_id.h +++ b/ubusd_id.h @@ -1,3 +1,16 @@ +/* + * Copyright (C) 2011 Felix Fietkau + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 2.1 + * as published by the Free Software Foundation + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + #ifndef __UBUSD_ID_H #define __UBUSD_ID_H @@ -10,6 +23,7 @@ struct ubus_id { }; void ubus_init_id_tree(struct avl_tree *tree); +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)