Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-07 08:33:36 +0400
committerFelix Fietkau <nbd@openwrt.org>2011-09-07 08:33:36 +0400
commitdee81b4f7902c5b59654f4e8fdbb153bb4f67c62 (patch)
tree51ebebb1a938e5572e763afa5487f26ba15f3e50 /blobmsg.h
parent34a6d05f9a84d0c6e07e12a976245a7d611d8e22 (diff)
add blobmsg_get_bool
Diffstat (limited to 'blobmsg.h')
-rw-r--r--blobmsg.h5
1 files changed, 5 insertions, 0 deletions
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);