VCOM Linux Driver
Advantech Inc.
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include "jsmn.h"
#include "jstree.h"
Functions | |
int | jstree_string_encode (char *out, int outlen, char *data) |
int | jstree_string_decode (char *out, int outlen, char *data) |
_tree_node * | _alloc_tree_node_type (int type) |
_tree_node * | _alloc_tree_node_data (int type, const char *data) |
_tree_node * | _alloc_tree_node_len (int type, const char *data, int datalen) |
int | dumptree (_tree_node *tree, int indent) |
int | dump (const char *js, jsmntok_t *t, size_t count, int indent) |
jstreeret | js2tree (const char *js, jsmntok_t *t, size_t count) |
_tree_node * | find_node (_tree_node *tree, char *key) |
_tree_node * | next_node (_tree_node *node, int step) |
int | get_node_string (_tree_node *node, char *buf, int bufsize) |
_tree_node ** | end_node (_tree_node **node) |
int | tree2js (_tree_node *tree, char *out, int outlen, int indent) |
int | tree2json (_tree_node *tree, char *buf, int bufsize) |
void | freejstree (_tree_node *tree) |
_tree_node * _alloc_tree_node_data | ( | int | type, |
const char * | data ) |
_tree_node * _alloc_tree_node_len | ( | int | type, |
const char * | data, | ||
int | datalen ) |
_tree_node * _alloc_tree_node_type | ( | int | type | ) |
int dump | ( | const char * | js, |
jsmntok_t * | t, | ||
size_t | count, | ||
int | indent ) |
int dumptree | ( | _tree_node * | tree, |
int | indent ) |
_tree_node ** end_node | ( | _tree_node ** | node | ) |
_tree_node * find_node | ( | _tree_node * | tree, |
char * | key ) |
void freejstree | ( | _tree_node * | tree | ) |
int get_node_string | ( | _tree_node * | node, |
char * | buf, | ||
int | bufsize ) |
int jstree_string_decode | ( | char * | out, |
int | outlen, | ||
char * | data ) |
int jstree_string_encode | ( | char * | out, |
int | outlen, | ||
char * | data ) |
_tree_node * next_node | ( | _tree_node * | node, |
int | step ) |
int tree2js | ( | _tree_node * | tree, |
char * | out, | ||
int | outlen, | ||
int | indent ) |
int tree2json | ( | _tree_node * | tree, |
char * | buf, | ||
int | bufsize ) |