From 542b153eedebecb8ae0aae22596608f150ad6be3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 10 Jun 2012 17:24:50 +0200 Subject: [PATCH] add simple blobmsg list wrapper --- utils.h | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.30.2