diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-06-24 21:08:22 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-06-24 21:08:22 +0200 |
commit | a0851ba9f4bb4e653ba8e97fb329a8e51428f000 (patch) | |
tree | f781be1c1ace55e17febe8c0427dc5c76cb923ee | |
parent | d4ff22c576eff5c362d43036b3788e61b7deef5c (diff) | |
download | unitd-a0851ba9f4bb4e653ba8e97fb329a8e51428f000.tar unitd-a0851ba9f4bb4e653ba8e97fb329a8e51428f000.zip |
add blobmsg_list_for_each
-rw-r--r-- | utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -22,6 +22,9 @@ struct blobmsg_list_node { #define blobmsg_list_init(list, type, field) \ __blobmsg_list_init(list, offsetof(type, field), sizeof(type)) +#define blobmsg_list_for_each(list, element) \ + avl_for_each_element(&(list)->avl, element, avl) + void __blobmsg_list_init(struct blobmsg_list *list, int offset, int len); int blobmsg_list_fill(struct blobmsg_list *list, void *data, int len); void blobmsg_list_free(struct blobmsg_list *list); |