libubox
C utility functions for OpenWrt.
|
Go to the source code of this file.
Data Structures | |
struct | strbuf |
Functions | |
bool | blobmsg_add_object (struct blob_buf *b, json_object *obj) |
static bool | blobmsg_add_array (struct blob_buf *b, struct array_list *a) |
bool | blobmsg_add_json_element (struct blob_buf *b, const char *name, json_object *obj) |
static bool | __blobmsg_add_json (struct blob_buf *b, json_object *obj) |
bool | blobmsg_add_json_from_file (struct blob_buf *b, const char *file) |
bool | blobmsg_add_json_from_string (struct blob_buf *b, const char *str) |
static bool | blobmsg_puts (struct strbuf *s, const char *c, int len) |
static void | add_separator (struct strbuf *s) |
static void | blobmsg_format_string (struct strbuf *s, const char *str) |
static void | blobmsg_format_json_list (struct strbuf *s, struct blob_attr *attr, int len, bool array) |
static void | blobmsg_format_element (struct strbuf *s, struct blob_attr *attr, bool without_name, bool head) |
static void | setup_strbuf (struct strbuf *s, struct blob_attr *attr, blobmsg_json_format_t cb, void *priv, int indent) |
char * | blobmsg_format_json_with_cb (struct blob_attr *attr, bool list, blobmsg_json_format_t cb, void *priv, int indent) |
char * | blobmsg_format_json_value_with_cb (struct blob_attr *attr, blobmsg_json_format_t cb, void *priv, int indent) |
|
static |
Definition at line 90 of file blobmsg_json.c.
|
static |
Definition at line 152 of file blobmsg_json.c.
|
static |
Definition at line 35 of file blobmsg_json.c.
bool blobmsg_add_json_element | ( | struct blob_buf * | b, |
const char * | name, | ||
json_object * | obj | ||
) |
Definition at line 47 of file blobmsg_json.c.
bool blobmsg_add_json_from_file | ( | struct blob_buf * | b, |
const char * | file | ||
) |
Definition at line 107 of file blobmsg_json.c.
bool blobmsg_add_json_from_string | ( | struct blob_buf * | b, |
const char * | str | ||
) |
Definition at line 112 of file blobmsg_json.c.
bool blobmsg_add_object | ( | struct blob_buf * | b, |
json_object * | obj | ||
) |
Definition at line 26 of file blobmsg_json.c.
|
static |
Definition at line 225 of file blobmsg_json.c.
|
static |
Definition at line 284 of file blobmsg_json.c.
char* blobmsg_format_json_value_with_cb | ( | struct blob_attr * | attr, |
blobmsg_json_format_t | cb, | ||
void * | priv, | ||
int | indent | ||
) |
Definition at line 356 of file blobmsg_json.c.
char* blobmsg_format_json_with_cb | ( | struct blob_attr * | attr, |
bool | list, | ||
blobmsg_json_format_t | cb, | ||
void * | priv, | ||
int | indent | ||
) |
Definition at line 322 of file blobmsg_json.c.
|
static |
Definition at line 168 of file blobmsg_json.c.
|
static |
|
static |
Definition at line 307 of file blobmsg_json.c.