return BLOBMSG_PADDING(sizeof(struct blobmsg_hdr) + namelen + 1);
}
+static inline void *blobmsg_name(struct blob_attr *attr)
+{
+ struct blobmsg_hdr *hdr = blob_data(attr);
+ return &hdr->name;
+}
+
static inline void *blobmsg_data(struct blob_attr *attr)
{
struct blobmsg_hdr *hdr = blob_data(attr);
return blob_buf_init(buf, BLOBMSG_TYPE_TABLE);
}
+char *blobmsg_format_json(struct blob_attr *attr);
+
#endif