projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34a6d05
)
add blobmsg_get_bool
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 7 Sep 2011 04:33:36 +0000
(06:33 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 7 Sep 2011 04:33:36 +0000
(06:33 +0200)
blobmsg.h
patch
|
blob
|
history
diff --git
a/blobmsg.h
b/blobmsg.h
index
2fb61d4
..
0b4565f
100644
(file)
--- 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);