projects
/
oweals
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4ff22c
)
add blobmsg_list_for_each
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 24 Jun 2012 19:08:22 +0000
(21:08 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 24 Jun 2012 19:08:22 +0000
(21:08 +0200)
utils.h
patch
|
blob
|
history
diff --git
a/utils.h
b/utils.h
index e89f2f1920f180d9ec10c792fdaf34032429ae0b..7ee65a04a14594f3498c55c6fa265d9b2ac12e79 100644
(file)
--- a/
utils.h
+++ b/
utils.h
@@
-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);