RetroArch
Classes | Macros | Functions | Variables
rmsgpack_dom.c File Reference
#include "rmsgpack_dom.h"
#include <stdint.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "rmsgpack.h"
Include dependency graph for rmsgpack_dom.c:

Classes

struct  dom_reader_state
 

Macros

#define MAX_DEPTH   128
 

Functions

static struct rmsgpack_dom_valuedom_reader_state_pop (struct dom_reader_state *s)
 
static int dom_reader_state_push (struct dom_reader_state *s, struct rmsgpack_dom_value *v)
 
static int dom_read_nil (void *data)
 
static int dom_read_bool (int value, void *data)
 
static int dom_read_int (int64_t value, void *data)
 
static int dom_read_uint (uint64_t value, void *data)
 
static int dom_read_string (char *value, uint32_t len, void *data)
 
static int dom_read_bin (void *value, uint32_t len, void *data)
 
static int dom_read_map_start (uint32_t len, void *data)
 
static int dom_read_array_start (uint32_t len, void *data)
 
void rmsgpack_dom_value_free (struct rmsgpack_dom_value *v)
 
struct rmsgpack_dom_valuermsgpack_dom_value_map_value (const struct rmsgpack_dom_value *map, const struct rmsgpack_dom_value *key)
 
int rmsgpack_dom_value_cmp (const struct rmsgpack_dom_value *a, const struct rmsgpack_dom_value *b)
 
void rmsgpack_dom_value_print (struct rmsgpack_dom_value *obj)
 
int rmsgpack_dom_write (RFILE *fd, const struct rmsgpack_dom_value *obj)
 
int rmsgpack_dom_read (RFILE *fd, struct rmsgpack_dom_value *out)
 
int rmsgpack_dom_read_into (RFILE *fd,...)
 

Variables

static struct rmsgpack_read_callbacks dom_reader_callbacks
 

Macro Definition Documentation

◆ MAX_DEPTH

#define MAX_DEPTH   128

Function Documentation

◆ dom_read_array_start()

static int dom_read_array_start ( uint32_t  len,
void data 
)
static
Here is the call graph for this function:

◆ dom_read_bin()

static int dom_read_bin ( void value,
uint32_t  len,
void data 
)
static
Here is the call graph for this function:

◆ dom_read_bool()

static int dom_read_bool ( int  value,
void data 
)
static
Here is the call graph for this function:

◆ dom_read_int()

static int dom_read_int ( int64_t  value,
void data 
)
static
Here is the call graph for this function:

◆ dom_read_map_start()

static int dom_read_map_start ( uint32_t  len,
void data 
)
static
Here is the call graph for this function:

◆ dom_read_nil()

static int dom_read_nil ( void data)
static
Here is the call graph for this function:

◆ dom_read_string()

static int dom_read_string ( char *  value,
uint32_t  len,
void data 
)
static
Here is the call graph for this function:

◆ dom_read_uint()

static int dom_read_uint ( uint64_t  value,
void data 
)
static
Here is the call graph for this function:

◆ dom_reader_state_pop()

static struct rmsgpack_dom_value* dom_reader_state_pop ( struct dom_reader_state s)
static
Here is the caller graph for this function:

◆ dom_reader_state_push()

static int dom_reader_state_push ( struct dom_reader_state s,
struct rmsgpack_dom_value v 
)
static
Here is the caller graph for this function:

◆ rmsgpack_dom_read()

int rmsgpack_dom_read ( RFILE fd,
struct rmsgpack_dom_value out 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rmsgpack_dom_read_into()

int rmsgpack_dom_read_into ( RFILE fd,
  ... 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rmsgpack_dom_value_cmp()

int rmsgpack_dom_value_cmp ( const struct rmsgpack_dom_value a,
const struct rmsgpack_dom_value b 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rmsgpack_dom_value_free()

void rmsgpack_dom_value_free ( struct rmsgpack_dom_value v)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rmsgpack_dom_value_map_value()

struct rmsgpack_dom_value* rmsgpack_dom_value_map_value ( const struct rmsgpack_dom_value map,
const struct rmsgpack_dom_value key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rmsgpack_dom_value_print()

void rmsgpack_dom_value_print ( struct rmsgpack_dom_value obj)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rmsgpack_dom_write()

int rmsgpack_dom_write ( RFILE fd,
const struct rmsgpack_dom_value obj 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ dom_reader_callbacks

struct rmsgpack_read_callbacks dom_reader_callbacks
static
Initial value:
= {
}
static int dom_read_bin(void *value, uint32_t len, void *data)
Definition: rmsgpack_dom.c:112
static int dom_read_uint(uint64_t value, void *data)
Definition: rmsgpack_dom.c:89
static int dom_read_array_start(uint32_t len, void *data)
Definition: rmsgpack_dom.c:154
static int dom_read_bool(int value, void *data)
Definition: rmsgpack_dom.c:67
static int dom_read_int(int64_t value, void *data)
Definition: rmsgpack_dom.c:78
static int dom_read_map_start(uint32_t len, void *data)
Definition: rmsgpack_dom.c:124
static int dom_read_string(char *value, uint32_t len, void *data)
Definition: rmsgpack_dom.c:100
static int dom_read_nil(void *data)
Definition: rmsgpack_dom.c:58