summaryrefslogtreecommitdiffstats
path: root/utils.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-06-10 17:24:50 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-06-10 17:24:50 +0200
commit542b153eedebecb8ae0aae22596608f150ad6be3 (patch)
treefc1332ab3599bb62352b7bdcd3e7a30141c499a3 /utils.h
parentd2602e4d3459271c2b4d3632a70539412eb29e7c (diff)
downloadunitd-542b153eedebecb8ae0aae22596608f150ad6be3.tar
unitd-542b153eedebecb8ae0aae22596608f150ad6be3.zip
add simple blobmsg list wrapper
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 3aad3b1..ce9d9dd 100644
--- 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))