RetroArch
|
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <streams/file_stream.h>
#include <retro_endianness.h>
#include <string/stdstring.h>
#include <compat/strl.h>
#include "libretrodb.h"
#include "rmsgpack_dom.h"
#include "rmsgpack.h"
#include "bintree.h"
#include "query.h"
Classes | |
struct | node_iter_ctx |
struct | libretrodb |
struct | libretrodb_index |
struct | libretrodb_metadata |
struct | libretrodb_header |
struct | libretrodb_cursor |
Macros | |
#define | MAGIC_NUMBER "RARCHDB" |
Typedefs | |
typedef struct libretrodb_metadata | libretrodb_metadata_t |
typedef struct libretrodb_header | libretrodb_header_t |
Variables | |
static struct rmsgpack_dom_value | sentinal |
#define MAGIC_NUMBER "RARCHDB" |
typedef struct libretrodb_header libretrodb_header_t |
typedef struct libretrodb_metadata libretrodb_metadata_t |
|
static |
void libretrodb_close | ( | libretrodb_t * | db | ) |
int libretrodb_create | ( | RFILE * | fd, |
libretrodb_value_provider | value_provider, | ||
void * | ctx | ||
) |
int libretrodb_create_index | ( | libretrodb_t * | db, |
const char * | name, | ||
const char * | field_name | ||
) |
void libretrodb_cursor_close | ( | libretrodb_cursor_t * | cursor | ) |
libretrodb_cursor_close: : Handle to database cursor.
Closes cursor and frees up allocated memory.
void libretrodb_cursor_free | ( | libretrodb_cursor_t * | dbc | ) |
libretrodb_cursor_t* libretrodb_cursor_new | ( | void | ) |
int libretrodb_cursor_open | ( | libretrodb_t * | db, |
libretrodb_cursor_t * | cursor, | ||
libretrodb_query_t * | q | ||
) |
libretrodb_cursor_open: : Handle to database. : Handle to database cursor. : Query to execute.
Opens cursor to database based on query .
Returns: 0 if successful, otherwise negative.
int libretrodb_cursor_read_item | ( | libretrodb_cursor_t * | cursor, |
struct rmsgpack_dom_value * | out | ||
) |
int libretrodb_cursor_reset | ( | libretrodb_cursor_t * | cursor | ) |
libretrodb_cursor_reset: : Handle to database cursor.
Resets cursor.
Returns: ???.
int libretrodb_find_entry | ( | libretrodb_t * | db, |
const char * | index_name, | ||
const void * | key, | ||
struct rmsgpack_dom_value * | out | ||
) |
|
static |
void libretrodb_free | ( | libretrodb_t * | db | ) |
libretrodb_t* libretrodb_new | ( | void | ) |
int libretrodb_open | ( | const char * | path, |
libretrodb_t * | db | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |