add a blobmsg_type() inline function
This commit is contained in:
parent
738884e746
commit
8cada85b61
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ static inline const char *blobmsg_name(const struct blob_attr *attr)
|
||||||
return (const char *) hdr->name;
|
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)
|
static inline void *blobmsg_data(const struct blob_attr *attr)
|
||||||
{
|
{
|
||||||
struct blobmsg_hdr *hdr = blob_data(attr);
|
struct blobmsg_hdr *hdr = blob_data(attr);
|
||||||
|
|
Loading…
Reference in a new issue