VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
jstree.h File Reference
#include "overload.h"

Go to the source code of this file.

Data Structures

struct  _t_treenode_data
 
struct  _t_treenode
 
struct  jstreeret
 

Macros

#define alloc_tree_node(args...)
 

Typedefs

typedef struct _t_treenode_data _treenode_data
 
typedef struct _t_treenode _tree_node
 

Functions

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_alloc_tree_node_len (int type, const char *data, int datalen)
 
_tree_node_alloc_tree_node_data (int type, const char *data)
 
_tree_node_alloc_tree_node_type (int type)
 
_tree_nodefind_node (_tree_node *tree, char *key)
 
_tree_nodenext_node (_tree_node *node, int step)
 
_tree_node ** end_node (_tree_node **node)
 
int get_node_string (_tree_node *node, char *buf, int bufsize)
 
int dumptree (_tree_node *tree, int indent)
 
int tree2json (_tree_node *tree, char *buf, int bufsize)
 
void freejstree (_tree_node *tree)
 
int jstree_string_decode (char *out, int outlen, char *data)
 
int jstree_string_encode (char *out, int outlen, char *data)
 

Macro Definition Documentation

◆ alloc_tree_node

#define alloc_tree_node ( args...)
Value:
_tree_node * _alloc_tree_node_len(int type, const char *data, int datalen)
Definition jstree.c:209
_tree_node * _alloc_tree_node_data(int type, const char *data)
Definition jstree.c:190
_tree_node * _alloc_tree_node_type(int type)
Definition jstree.c:178
#define ovrld3(_1, _2, _3, func,...)
Definition overload.h:5

Typedef Documentation

◆ _tree_node

typedef struct _t_treenode _tree_node

◆ _treenode_data

Function Documentation

◆ _alloc_tree_node_data()

_tree_node * _alloc_tree_node_data ( int type,
const char * data )

◆ _alloc_tree_node_len()

_tree_node * _alloc_tree_node_len ( int type,
const char * data,
int datalen )

◆ _alloc_tree_node_type()

_tree_node * _alloc_tree_node_type ( int type)

◆ dump()

int dump ( const char * js,
jsmntok_t * t,
size_t count,
int indent )

◆ dumptree()

int dumptree ( _tree_node * tree,
int indent )

◆ end_node()

_tree_node ** end_node ( _tree_node ** node)

◆ find_node()

_tree_node * find_node ( _tree_node * tree,
char * key )

◆ freejstree()

void freejstree ( _tree_node * tree)

◆ get_node_string()

int get_node_string ( _tree_node * node,
char * buf,
int bufsize )

◆ js2tree()

jstreeret js2tree ( const char * js,
jsmntok_t * t,
size_t count )

◆ jstree_string_decode()

int jstree_string_decode ( char * out,
int outlen,
char * data )

◆ jstree_string_encode()

int jstree_string_encode ( char * out,
int outlen,
char * data )

◆ next_node()

_tree_node * next_node ( _tree_node * node,
int step )

◆ tree2json()

int tree2json ( _tree_node * tree,
char * buf,
int bufsize )