blobmsg: allow data/length iterator/accessor functions to work on non-blobmsg elements
authorFelix Fietkau <nbd@openwrt.org>
Wed, 12 Mar 2014 19:08:27 +0000 (20:08 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 12 Mar 2014 19:18:12 +0000 (20:18 +0100)
commit58aec3c59a53147c7d924c823f7405218fb5f555
tree5b965908d842013c5609d2d541f5dff32806b6c8
parent926121113b903bf7b6133f782c84d0ed6c1a1a58
blobmsg: allow data/length iterator/accessor functions to work on non-blobmsg elements

This primarily helps with simplifying the ubus APIs.
blobmsg header presence is indicated by the BLOB_ATTR_EXTENDED bit in
the id_len field.

This changes the format ABI, but not the API.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
blob.c
blob.h
blobmsg.c
blobmsg.h