add blobmsg_get_bool
This commit is contained in:
parent
34a6d05f9a
commit
dee81b4f79
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue