RetroArch
Classes | Functions | Variables
rmsgpack_test.c File Reference
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <unistd.h>
#include <streams/file_stream.h>
#include "rmsgpack.h"
Include dependency graph for rmsgpack_test.c:

Classes

struct  stub_state
 

Functions

static void stub_state_push_map (struct stub_state *s, uint32_t size)
 
static void stub_state_push_array (struct stub_state *s, uint32_t size)
 
static void stub_state_pre_print (struct stub_state *s)
 
static void stub_state_post_print (struct stub_state *s)
 
static int stub_read_map_start (uint32_t size, void *data)
 
static int stub_read_array_start (uint32_t size, void *data)
 
static int stub_read_string (char *s, uint32_t len, void *data)
 
static int stub_read_bin (void *s, uint32_t len, void *data)
 
static int stub_read_uint (uint64_t value, void *data)
 
static int stub_read_nil (void *data)
 
static int stub_read_int (int64_t value, void *data)
 
static int stub_read_bool (int value, void *data)
 
int main (void)
 

Variables

static struct rmsgpack_read_callbacks stub_callbacks
 

Function Documentation

◆ main()

int main ( void  )
Here is the call graph for this function:

◆ stub_read_array_start()

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

◆ stub_read_bin()

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

◆ stub_read_bool()

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

◆ stub_read_int()

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

◆ stub_read_map_start()

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

◆ stub_read_nil()

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

◆ stub_read_string()

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

◆ stub_read_uint()

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

◆ stub_state_post_print()

static void stub_state_post_print ( struct stub_state s)
static
Here is the caller graph for this function:

◆ stub_state_pre_print()

static void stub_state_pre_print ( struct stub_state s)
static
Here is the caller graph for this function:

◆ stub_state_push_array()

static void stub_state_push_array ( struct stub_state s,
uint32_t  size 
)
static
Here is the caller graph for this function:

◆ stub_state_push_map()

static void stub_state_push_map ( struct stub_state s,
uint32_t  size 
)
static
Here is the caller graph for this function:

Variable Documentation

◆ stub_callbacks

struct rmsgpack_read_callbacks stub_callbacks
static
Initial value:
= {
}
static int stub_read_nil(void *data)
Definition: rmsgpack_test.c:144
static int stub_read_int(int64_t value, void *data)
Definition: rmsgpack_test.c:152
static int stub_read_array_start(uint32_t size, void *data)
Definition: rmsgpack_test.c:105
static int stub_read_uint(uint64_t value, void *data)
Definition: rmsgpack_test.c:132
static int stub_read_bin(void *s, uint32_t len, void *data)
Definition: rmsgpack_test.c:120
static int stub_read_bool(int value, void *data)
Definition: rmsgpack_test.c:164
static int stub_read_map_start(uint32_t size, void *data)
Definition: rmsgpack_test.c:99
static int stub_read_string(char *s, uint32_t len, void *data)
Definition: rmsgpack_test.c:111