Linux Perf
jsmn.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  jsmntok_t
 
struct  jsmn_parser
 

Enumerations

enum  jsmntype_t { JSMN_PRIMITIVE = 0, JSMN_OBJECT = 1, JSMN_ARRAY = 2, JSMN_STRING = 3 }
 
enum  jsmnerr_t { JSMN_ERROR_NOMEM = -1, JSMN_ERROR_INVAL = -2, JSMN_ERROR_PART = -3, JSMN_SUCCESS = 0 }
 

Functions

void jsmn_init (jsmn_parser *parser)
 
jsmnerr_t jsmn_parse (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, unsigned int num_tokens)
 
const char * jsmn_strerror (jsmnerr_t err)
 

Enumeration Type Documentation

◆ jsmnerr_t

enum jsmnerr_t
Enumerator
JSMN_ERROR_NOMEM 
JSMN_ERROR_INVAL 
JSMN_ERROR_PART 
JSMN_SUCCESS 

Definition at line 19 of file jsmn.h.

◆ jsmntype_t

enum jsmntype_t
Enumerator
JSMN_PRIMITIVE 
JSMN_OBJECT 
JSMN_ARRAY 
JSMN_STRING 

Definition at line 12 of file jsmn.h.

Function Documentation

◆ jsmn_init()

void jsmn_init ( jsmn_parser parser)

Definition at line 292 of file jsmn.c.

◆ jsmn_parse()

jsmnerr_t jsmn_parse ( jsmn_parser parser,
const char *  js,
size_t  len,
jsmntok_t tokens,
unsigned int  num_tokens 
)

Definition at line 173 of file jsmn.c.

Here is the call graph for this function:

◆ jsmn_strerror()

const char* jsmn_strerror ( jsmnerr_t  err)

Definition at line 299 of file jsmn.c.