add a blobmsg_type() inline function

This commit is contained in:
Felix Fietkau 2011-09-12 13:37:53 +02:00
parent 738884e746
commit 8cada85b61

View file

@ -56,6 +56,11 @@ static inline const char *blobmsg_name(const struct blob_attr *attr)
return (const char *) hdr->name;
}
static inline int blobmsg_type(const struct blob_attr *attr)
{
return blob_id(attr);
}
static inline void *blobmsg_data(const struct blob_attr *attr)
{
struct blobmsg_hdr *hdr = blob_data(attr);