added the rctx field to mio_json_t

changed mio_json_instcb_t to get passed the content pointer
This commit is contained in:
2020-06-02 09:49:08 +00:00
parent cfd80f778c
commit c2c3d00ff2
3 changed files with 18 additions and 14 deletions

View File

@ -30,7 +30,7 @@
#include <stdio.h>
#include <string.h>
static int on_json_inst (mio_json_t* json, mio_json_inst_t inst, mio_oow_t level, const mio_oocs_t* str)
static int on_json_inst (mio_json_t* json, mio_json_inst_t inst, mio_oow_t level, const mio_oocs_t* str, void* ctx)
{
mio_t* mio = mio_json_getmio(json);
mio_oow_t i;
@ -114,7 +114,7 @@ int main (int argc, char* argv[])
json = mio_json_open(mio, 0);
mio_json_setinstcb (json, on_json_inst);
mio_json_setinstcb (json, on_json_inst, MIO_NULL);
rem = 0;