ESP8266 Centre + NB
结构体 | 宏定义 | 函数
esp8266_centre_NB/include/json/jsontree.h 文件参考
#include "c_types.h"
#include "json/json.h"
esp8266_centre_NB/include/json/jsontree.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  jsontree_context
 
struct  jsontree_value
 
struct  jsontree_string
 
struct  jsontree_int
 
struct  jsontree_callback
 
struct  jsontree_pair
 
struct  jsontree_object
 
struct  jsontree_array
 

宏定义

#define JSONTREE_MAX_DEPTH   10
 
#define JSONTREE_STRING(text)   {JSON_TYPE_STRING, (text)}
 
#define JSONTREE_PAIR(name, value)   {(name), (struct jsontree_value *)(value)}
 
#define JSONTREE_CALLBACK(output, set)   {JSON_TYPE_CALLBACK, (output), (set)}
 
#define JSONTREE_OBJECT(name,...)
 
#define JSONTREE_PAIR_ARRAY(value)   (struct jsontree_value *)(value)
 
#define JSONTREE_ARRAY(name,...)
 
#define JSONTREE_OBJECT_EXT(name,...)
 

函数

void jsontree_setup (struct jsontree_context *js_ctx, struct jsontree_value *root, int(*putchar)(int))
 
void jsontree_reset (struct jsontree_context *js_ctx)
 
const char * jsontree_path_name (const struct jsontree_context *js_ctx, int depth)
 
void jsontree_write_int (const struct jsontree_context *js_ctx, int value)
 
void jsontree_write_int_array (const struct jsontree_context *js_ctx, const int *text, uint32 length)
 
void jsontree_write_atom (const struct jsontree_context *js_ctx, const char *text)
 
void jsontree_write_string (const struct jsontree_context *js_ctx, const char *text)
 
int jsontree_print_next (struct jsontree_context *js_ctx)
 
struct jsontree_valuejsontree_find_next (struct jsontree_context *js_ctx, int type)
 

详细描述

JSON output generation

作者
Niclas Finne nfi@s.nosp@m.ics..nosp@m.se Joakim Eriksson joaki.nosp@m.me@s.nosp@m.ics.s.nosp@m.e

宏定义说明

#define JSONTREE_MAX_DEPTH   10
#define JSONTREE_STRING (   text)    {JSON_TYPE_STRING, (text)}
#define JSONTREE_PAIR (   name,
  value 
)    {(name), (struct jsontree_value *)(value)}
#define JSONTREE_CALLBACK (   output,
  set 
)    {JSON_TYPE_CALLBACK, (output), (set)}
#define JSONTREE_OBJECT (   name,
  ... 
)
值:
static struct jsontree_pair jsontree_pair_##name[] = {__VA_ARGS__}; \
static struct jsontree_object name = { \
sizeof(jsontree_pair_##name)/sizeof(struct jsontree_pair), \
jsontree_pair_##name }
#define JSON_TYPE_OBJECT
Definition: esp8266_centre_NB/include/include/json/json.h:44
Definition: esp8266_centre_NB/include/include/json/jsontree.h:84
Definition: esp8266_centre_NB/include/include/json/jsontree.h:89
const char * name
Definition: esp8266_centre_NB/include/include/json/jsontree.h:85
#define JSONTREE_PAIR_ARRAY (   value)    (struct jsontree_value *)(value)
#define JSONTREE_ARRAY (   name,
  ... 
)
值:
static struct jsontree_value* jsontree_value_##name[] = {__VA_ARGS__}; \
static struct jsontree_array name = { \
sizeof(jsontree_value_##name)/sizeof(struct jsontree_value*), \
jsontree_value_##name }
#define JSON_TYPE_ARRAY
Definition: esp8266_centre_NB/include/include/json/json.h:43
Definition: esp8266_centre_NB/include/include/json/jsontree.h:95
Definition: esp8266_centre_NB/include/include/json/jsontree.h:61
#define JSONTREE_OBJECT_EXT (   name,
  ... 
)
值:
static struct jsontree_pair jsontree_pair_##name[] = {__VA_ARGS__}; \
struct jsontree_object name = { \
sizeof(jsontree_pair_##name)/sizeof(struct jsontree_pair), \
jsontree_pair_##name }
#define JSON_TYPE_OBJECT
Definition: esp8266_centre_NB/include/include/json/json.h:44
Definition: esp8266_centre_NB/include/include/json/jsontree.h:84
Definition: esp8266_centre_NB/include/include/json/jsontree.h:89
const char * name
Definition: esp8266_centre_NB/include/include/json/jsontree.h:85

函数说明

void jsontree_setup ( struct jsontree_context js_ctx,
struct jsontree_value root,
int(*)(int)  putchar 
)
void jsontree_reset ( struct jsontree_context js_ctx)
const char* jsontree_path_name ( const struct jsontree_context js_ctx,
int  depth 
)
void jsontree_write_int ( const struct jsontree_context js_ctx,
int  value 
)
void jsontree_write_int_array ( const struct jsontree_context js_ctx,
const int *  text,
uint32  length 
)
void jsontree_write_atom ( const struct jsontree_context js_ctx,
const char *  text 
)
void jsontree_write_string ( const struct jsontree_context js_ctx,
const char *  text 
)
int jsontree_print_next ( struct jsontree_context js_ctx)
struct jsontree_value* jsontree_find_next ( struct jsontree_context js_ctx,
int  type 
)