From dee81b4f7902c5b59654f4e8fdbb153bb4f67c62 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 7 Sep 2011 06:33:36 +0200 Subject: [PATCH] add blobmsg_get_bool --- blobmsg.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blobmsg.h b/blobmsg.h index 2fb61d4..0b4565f 100644 --- a/blobmsg.h +++ b/blobmsg.h @@ -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);