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:
d2602e4
)
add simple blobmsg list wrapper
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 10 Jun 2012 15:24:50 +0000
(17:24 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 10 Jun 2012 15:24:50 +0000
(17:24 +0200)
utils.h
patch
|
blob
|
history
diff --git
a/utils.h
b/utils.h
index 3aad3b17d6a80f8515b27aa88b32a241f07b6bea..ce9d9ddf1874be5466dabee8b53a0b03cd851f83 100644
(file)
--- a/
utils.h
+++ b/
utils.h
@@
-16,6
+16,9
@@
struct blobmsg_list_node {
struct blob_attr *data;
};
+#define blobmsg_list_simple_init(list) \
+ __blobmsg_list_init(tree, 0, sizeof(struct blobmsg_list_node))
+
#define blobmsg_list_init(list, type, field) \
__blobmsg_list_init(tree, offsetof(type, field), sizeof(type))