RetroArch
Classes | Typedefs | Enumerations | Functions | Variables
c_converter.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <rhash.h>
#include <retro_assert.h>
#include <string/stdstring.h>
#include <streams/file_stream.h>
#include "libretrodb.h"
Include dependency graph for c_converter.c:

Classes

struct  dat_converter_token_t
 
struct  dat_converter_map_t
 
struct  dat_converter_list_t
 
union  dat_converter_list_item_t
 
struct  dat_converter_bt_node_t
 
struct  dat_converter_match_key_t
 
struct  dat_converter_rdb_mappings_t
 

Typedefs

typedef struct dat_converter_map_t dat_converter_map_t
 
typedef struct dat_converter_list_t dat_converter_list_t
 
typedef union dat_converter_list_item_t dat_converter_list_item_t
 
typedef struct dat_converter_search_tree_t dat_converter_search_tree_t
 
typedef struct dat_converter_bt_node_t dat_converter_bt_node_t
 
typedef struct dat_converter_match_key_t dat_converter_match_key_t
 

Enumerations

enum  dat_converter_map_enum { DAT_CONVERTER_STRING_MAP, DAT_CONVERTER_LIST_MAP }
 
enum  dat_converter_list_enum { DAT_CONVERTER_TOKEN_LIST, DAT_CONVERTER_STRING_LIST, DAT_CONVERTER_MAP_LIST, DAT_CONVERTER_LIST_LIST }
 
enum  dat_converter_rdb_format_enum { DAT_CONVERTER_RDB_TYPE_STRING, DAT_CONVERTER_RDB_TYPE_UINT, DAT_CONVERTER_RDB_TYPE_BINARY, DAT_CONVERTER_RDB_TYPE_HEX }
 

Functions

static void dat_converter_exit (int rc)
 
static dat_converter_list_tdat_converter_list_create (dat_converter_list_enum type)
 
static void dat_converter_bt_node_free (dat_converter_bt_node_t *node)
 
static void dat_converter_list_free (dat_converter_list_t *list)
 
static void dat_converter_list_append (dat_converter_list_t *dst, void *item)
 
static dat_converter_bt_node_tdat_converter_bt_node_insert (dat_converter_list_t *list, dat_converter_bt_node_t **node, dat_converter_map_t *map)
 
static dat_converter_list_tdat_converter_lexer (char *src, const char *dat_path)
 
static dat_converter_list_tdat_parser_table (dat_converter_list_item_t **start_token)
 
static dat_converter_match_key_tdat_converter_match_key_create (const char *format)
 
static void dat_converter_match_key_free (dat_converter_match_key_t *match_key)
 
static const char * dat_converter_get_match (dat_converter_list_t *list, dat_converter_match_key_t *match_key)
 
static dat_converter_list_tdat_converter_parser (dat_converter_list_t *target, dat_converter_list_t *lexer_list, dat_converter_match_key_t *match_key)
 
static void dat_converter_value_provider_init (void)
 
static void dat_converter_value_provider_free (void)
 
static int dat_converter_value_provider (dat_converter_list_item_t **current_item, struct rmsgpack_dom_value *out)
 
int main (int argc, char **argv)
 

Variables

dat_converter_rdb_mappings_t rdb_mappings []
 
dat_converter_match_key_trdb_mappings_mk [(sizeof(rdb_mappings)/sizeof(*rdb_mappings))] = {0}
 

Typedef Documentation

◆ dat_converter_bt_node_t

◆ dat_converter_list_item_t

◆ dat_converter_list_t

◆ dat_converter_map_t

◆ dat_converter_match_key_t

◆ dat_converter_search_tree_t

Enumeration Type Documentation

◆ dat_converter_list_enum

Enumerator
DAT_CONVERTER_TOKEN_LIST 
DAT_CONVERTER_STRING_LIST 
DAT_CONVERTER_MAP_LIST 
DAT_CONVERTER_LIST_LIST 

◆ dat_converter_map_enum

Enumerator
DAT_CONVERTER_STRING_MAP 
DAT_CONVERTER_LIST_MAP 

◆ dat_converter_rdb_format_enum

Enumerator
DAT_CONVERTER_RDB_TYPE_STRING 
DAT_CONVERTER_RDB_TYPE_UINT 
DAT_CONVERTER_RDB_TYPE_BINARY 
DAT_CONVERTER_RDB_TYPE_HEX 

Function Documentation

◆ dat_converter_bt_node_free()

static void dat_converter_bt_node_free ( dat_converter_bt_node_t node)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_bt_node_insert()

static dat_converter_bt_node_t* dat_converter_bt_node_insert ( dat_converter_list_t list,
dat_converter_bt_node_t **  node,
dat_converter_map_t map 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_exit()

static void dat_converter_exit ( int  rc)
static
Here is the caller graph for this function:

◆ dat_converter_get_match()

static const char* dat_converter_get_match ( dat_converter_list_t list,
dat_converter_match_key_t match_key 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_lexer()

static dat_converter_list_t* dat_converter_lexer ( char *  src,
const char *  dat_path 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_list_append()

static void dat_converter_list_append ( dat_converter_list_t dst,
void item 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_list_create()

static dat_converter_list_t* dat_converter_list_create ( dat_converter_list_enum  type)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_list_free()

static void dat_converter_list_free ( dat_converter_list_t list)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_match_key_create()

static dat_converter_match_key_t* dat_converter_match_key_create ( const char *  format)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_match_key_free()

static void dat_converter_match_key_free ( dat_converter_match_key_t match_key)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_parser()

static dat_converter_list_t* dat_converter_parser ( dat_converter_list_t target,
dat_converter_list_t lexer_list,
dat_converter_match_key_t match_key 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_value_provider()

static int dat_converter_value_provider ( dat_converter_list_item_t **  current_item,
struct rmsgpack_dom_value out 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_value_provider_free()

static void dat_converter_value_provider_free ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_converter_value_provider_init()

static void dat_converter_value_provider_init ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dat_parser_table()

static dat_converter_list_t* dat_parser_table ( dat_converter_list_item_t **  start_token)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

This file contains the main entrypoints for the Wii U executable that set up the call to main().

Here is the call graph for this function:

Variable Documentation

◆ rdb_mappings

◆ rdb_mappings_mk

dat_converter_match_key_t* rdb_mappings_mk[(sizeof(rdb_mappings)/sizeof(*rdb_mappings))] = {0}