blobmsg: add blobmsg_get_string
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
f5245f9887
commit
c360ec576c
1 changed files with 5 additions and 0 deletions
|
@ -183,6 +183,11 @@ static inline uint64_t blobmsg_get_u64(struct blob_attr *attr)
|
||||||
return be64_to_cpu(*(uint64_t *) blobmsg_data(attr));
|
return be64_to_cpu(*(uint64_t *) blobmsg_data(attr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline char *blobmsg_get_string(struct blob_attr *attr)
|
||||||
|
{
|
||||||
|
return blobmsg_data(attr);
|
||||||
|
}
|
||||||
|
|
||||||
void *blobmsg_alloc_string_buffer(struct blob_buf *buf, const char *name, int maxlen);
|
void *blobmsg_alloc_string_buffer(struct blob_buf *buf, const char *name, int maxlen);
|
||||||
void blobmsg_add_string_buffer(struct blob_buf *buf);
|
void blobmsg_add_string_buffer(struct blob_buf *buf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue