diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-12 15:37:53 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-12 15:37:53 +0400 |
commit | 8cada85b610b40a8c25477985ff5c1d26ef452d0 (patch) | |
tree | 80678fc4ec55af5175bf971f17e7b50862e53cdb /blobmsg.h | |
parent | 738884e7469969a0b30a077820f60ff0a1e37ac2 (diff) |
add a blobmsg_type() inline function
Diffstat (limited to 'blobmsg.h')
-rw-r--r-- | blobmsg.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |