From: Felix Fietkau Date: Sun, 10 Jun 2012 15:24:50 +0000 (+0200) Subject: add simple blobmsg list wrapper X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=542b153eedebecb8ae0aae22596608f150ad6be3;p=project%2Fprocd.git add simple blobmsg list wrapper --- 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))