add blobmsg_get_bool

This commit is contained in:
Felix Fietkau 2011-09-07 06:33:36 +02:00
parent 34a6d05f9a
commit dee81b4f79

View file

@ -145,6 +145,11 @@ static inline uint8_t blobmsg_get_u8(struct blob_attr *attr)
return *(uint8_t *) blobmsg_data(attr);
}
static inline bool blobmsg_get_bool(struct blob_attr *attr)
{
return *(uint8_t *) blobmsg_data(attr);
}
static inline uint16_t blobmsg_get_u16(struct blob_attr *attr)
{
return *(uint16_t *) blobmsg_data(attr);