string parsing utility functions described by the [JSON] schema More...
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "mh5debug.h"
#include "mh5json.h"
#include "mh5memory.h"
Functions | |
E_JSON_STATE | JSON_Parse (U8BIT *data, U32BIT size, const S_JSON_MEMBERS *members, void *usr) |
void | JSON_FreeAstring (S_STRING *p_str) |
void | JSON_FreeUintArray (U32BIT *p_uint) |
void | JSON_FreeStrArray (S_STRING **pp_str) |
string parsing utility functions described by the [JSON] schema
void JSON_FreeAstring | ( | S_STRING * | p_str | ) |
p_str | pointer to allocated string (JST_CBF_ASTRING) |
void JSON_FreeStrArray | ( | S_STRING ** | pp_str | ) |
array | pointer to allocated array |
type | type of array (JST_CBF_ARRAY_INT or JST_CBF_ARRAY_STR) or allocated string (JST_CBF_ASTRING) |
void JSON_FreeUintArray | ( | U32BIT * | p_uint | ) |
p_uint | pointer to allocated int array (JST_CBF_ARRAY_INT) |
E_JSON_STATE JSON_Parse | ( | U8BIT * | data, |
U32BIT | size, | ||
const S_JSON_MEMBERS * | members, | ||
void * | usr | ||
) |
data | pointer to JSON formated data |
size | number of bytes of JSON data |
members | array of [token, type, callback func] |