|
libubox
C utility functions for OpenWrt.
|
#include "blobmsg.h"Go to the source code of this file.
Functions | |
| bool | blobmsg_check_attr (const struct blob_attr *attr, bool name) |
| static bool | blobmsg_check_name (const struct blob_attr *attr, bool name) |
| bool | blobmsg_check_attr_len (const struct blob_attr *attr, bool name, size_t len) |
| int | blobmsg_check_array (const struct blob_attr *attr, int type) |
| int | blobmsg_check_array_len (const struct blob_attr *attr, int type, size_t blob_len) |
| bool | blobmsg_check_attr_list (const struct blob_attr *attr, int type) |
| bool | blobmsg_check_attr_list_len (const struct blob_attr *attr, int type, size_t len) |
| int | blobmsg_parse_array (const struct blobmsg_policy *policy, int policy_len, struct blob_attr **tb, void *data, unsigned int len) |
| int | blobmsg_parse (const struct blobmsg_policy *policy, int policy_len, struct blob_attr **tb, void *data, unsigned int len) |
| static struct blob_attr * | blobmsg_new (struct blob_buf *buf, int type, const char *name, int payload_len, void **data) |
| static int | attr_to_offset (struct blob_buf *buf, struct blob_attr *attr) |
| void * | blobmsg_open_nested (struct blob_buf *buf, const char *name, bool array) |
| __attribute__ ((format(printf, 3, 0))) | |
| __attribute__ ((format(printf, 3, 4))) | |
| void * | blobmsg_alloc_string_buffer (struct blob_buf *buf, const char *name, unsigned int maxlen) |
| void * | blobmsg_realloc_string_buffer (struct blob_buf *buf, unsigned int maxlen) |
| void | blobmsg_add_string_buffer (struct blob_buf *buf) |
| int | blobmsg_add_field (struct blob_buf *buf, int type, const char *name, const void *data, unsigned int len) |
Variables | |
| static const int | blob_type [__BLOBMSG_TYPE_LAST] |
| __attribute__ | ( | (format(printf, 3, 0)) | ) |
Definition at line 284 of file blobmsg.c.

| __attribute__ | ( | (format(printf, 3, 4)) | ) |
| int blobmsg_add_field | ( | struct blob_buf * | buf, |
| int | type, | ||
| const char * | name, | ||
| const void * | data, | ||
| unsigned int | len | ||
| ) |
Definition at line 377 of file blobmsg.c.


| void blobmsg_add_string_buffer | ( | struct blob_buf * | buf | ) |
Definition at line 361 of file blobmsg.c.


| void* blobmsg_alloc_string_buffer | ( | struct blob_buf * | buf, |
| const char * | name, | ||
| unsigned int | maxlen | ||
| ) |
| int blobmsg_check_array | ( | const struct blob_attr * | attr, |
| int | type | ||
| ) |
Definition at line 87 of file blobmsg.c.


| int blobmsg_check_array_len | ( | const struct blob_attr * | attr, |
| int | type, | ||
| size_t | blob_len | ||
| ) |
Definition at line 92 of file blobmsg.c.


| bool blobmsg_check_attr | ( | const struct blob_attr * | attr, |
| bool | name | ||
| ) |
| bool blobmsg_check_attr_len | ( | const struct blob_attr * | attr, |
| bool | name, | ||
| size_t | len | ||
| ) |
Definition at line 58 of file blobmsg.c.


| bool blobmsg_check_attr_list | ( | const struct blob_attr * | attr, |
| int | type | ||
| ) |
Definition at line 130 of file blobmsg.c.


| bool blobmsg_check_attr_list_len | ( | const struct blob_attr * | attr, |
| int | type, | ||
| size_t | len | ||
| ) |
|
static |
Definition at line 33 of file blobmsg.c.


|
static |
Definition at line 227 of file blobmsg.c.


| void* blobmsg_open_nested | ( | struct blob_buf * | buf, |
| const char * | name, | ||
| bool | array | ||
| ) |
Definition at line 266 of file blobmsg.c.


| int blobmsg_parse | ( | const struct blobmsg_policy * | policy, |
| int | policy_len, | ||
| struct blob_attr ** | tb, | ||
| void * | data, | ||
| unsigned int | len | ||
| ) |
| int blobmsg_parse_array | ( | const struct blobmsg_policy * | policy, |
| int | policy_len, | ||
| struct blob_attr ** | tb, | ||
| void * | data, | ||
| unsigned int | len | ||
| ) |
| void* blobmsg_realloc_string_buffer | ( | struct blob_buf * | buf, |
| unsigned int | maxlen | ||
| ) |
|
static |