SGDK
A free and open development kit for the Sega Mega Drive
Loading...
Searching...
No Matches
json.h
Go to the documentation of this file.
1
/************************************************************************/
19
20
#ifndef _JSON_H_
21
#define _JSON_H_
22
23
#include "
types.h
"
24
25
#if (MODULE_MEGAWIFI != 0)
26
28
#define JSMN_STATIC
29
#include "jsmn.h"
30
33
#define json_item(json_str, obj_tok, idx) (idx) < 0 ? NULL : \
34
&((json_str)[(obj_tok)[idx].start])
35
36
/************************************************************************/
48
int
json_null_terminate(
char
*json_str,
const
jsmntok_t *obj_tok,
int
num_tok);
49
50
/************************************************************************/
60
bool
json_is_key(
const
jsmntok_t *json_tok,
int
obj_idx,
int
num_tok);
61
62
/************************************************************************/
74
int
json_object_next(
const
jsmntok_t *obj_tok,
int
obj_idx,
int
parent_idx,
75
int
num_tok);
76
77
/************************************************************************/
88
int
json_key_next(
const
jsmntok_t *json_tok,
int
obj_idx,
int
parent_idx,
89
int
num_tok);
90
91
/************************************************************************/
106
int
json_key_search(
const
char
*key,
const
char
*json_str,
107
const
jsmntok_t *json_tok,
int
obj_idx,
int
parent_idx,
108
int
num_tok);
109
110
/************************************************************************/
119
int
json_bool_get(
const
char
*json_str,
const
jsmntok_t *json_tok,
int
obj_idx);
120
121
#endif
// MODULE_MEGAWIFI
122
123
#endif
/*_JSON_H_*/
124
126
types.h
Types definition.
SGDK
inc
ext
mw
json.h
Generated by
1.13.2