RetroArch
Classes | Enumerations | Functions
database_info.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <file/archive_file.h>
#include <retro_common_api.h>
#include <queues/task_queue.h>
Include dependency graph for database_info.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  database_info_handle_t
 
struct  database_info_t
 
struct  database_info_list_t
 

Enumerations

enum  database_status {
  DATABASE_STATUS_NONE = 0, DATABASE_STATUS_ITERATE, DATABASE_STATUS_ITERATE_BEGIN, DATABASE_STATUS_ITERATE_START,
  DATABASE_STATUS_ITERATE_NEXT, DATABASE_STATUS_FREE
}
 
enum  database_type {
  DATABASE_TYPE_NONE = 0, DATABASE_TYPE_ITERATE, DATABASE_TYPE_ITERATE_ARCHIVE, DATABASE_TYPE_ITERATE_LUTRO,
  DATABASE_TYPE_SERIAL_LOOKUP, DATABASE_TYPE_CRC_LOOKUP
}
 
enum  database_query_type {
  DATABASE_QUERY_NONE = 0, DATABASE_QUERY_ENTRY, DATABASE_QUERY_ENTRY_PUBLISHER, DATABASE_QUERY_ENTRY_DEVELOPER,
  DATABASE_QUERY_ENTRY_ORIGIN, DATABASE_QUERY_ENTRY_FRANCHISE, DATABASE_QUERY_ENTRY_RATING, DATABASE_QUERY_ENTRY_BBFC_RATING,
  DATABASE_QUERY_ENTRY_ELSPA_RATING, DATABASE_QUERY_ENTRY_ESRB_RATING, DATABASE_QUERY_ENTRY_PEGI_RATING, DATABASE_QUERY_ENTRY_CERO_RATING,
  DATABASE_QUERY_ENTRY_ENHANCEMENT_HW, DATABASE_QUERY_ENTRY_EDGE_MAGAZINE_RATING, DATABASE_QUERY_ENTRY_EDGE_MAGAZINE_ISSUE, DATABASE_QUERY_ENTRY_FAMITSU_MAGAZINE_RATING,
  DATABASE_QUERY_ENTRY_RELEASEDATE_MONTH, DATABASE_QUERY_ENTRY_RELEASEDATE_YEAR, DATABASE_QUERY_ENTRY_MAX_USERS
}
 

Functions

database_info_list_tdatabase_info_list_new (const char *rdb_path, const char *query)
 
void database_info_list_free (database_info_list_t *list)
 
database_info_handle_tdatabase_info_dir_init (const char *dir, enum database_type type, retro_task_t *task, bool show_hidden_files)
 
database_info_handle_tdatabase_info_file_init (const char *path, enum database_type type, retro_task_t *task)
 
void database_info_free (database_info_handle_t *handle)
 
int database_info_build_query_enum (char *query, size_t len, enum database_query_type type, const char *path)
 
char * bin_to_hex_alloc (const uint8_t *data, size_t len)
 

Enumeration Type Documentation

◆ database_query_type

Enumerator
DATABASE_QUERY_NONE 
DATABASE_QUERY_ENTRY 
DATABASE_QUERY_ENTRY_PUBLISHER 
DATABASE_QUERY_ENTRY_DEVELOPER 
DATABASE_QUERY_ENTRY_ORIGIN 
DATABASE_QUERY_ENTRY_FRANCHISE 
DATABASE_QUERY_ENTRY_RATING 
DATABASE_QUERY_ENTRY_BBFC_RATING 
DATABASE_QUERY_ENTRY_ELSPA_RATING 
DATABASE_QUERY_ENTRY_ESRB_RATING 
DATABASE_QUERY_ENTRY_PEGI_RATING 
DATABASE_QUERY_ENTRY_CERO_RATING 
DATABASE_QUERY_ENTRY_ENHANCEMENT_HW 
DATABASE_QUERY_ENTRY_EDGE_MAGAZINE_RATING 
DATABASE_QUERY_ENTRY_EDGE_MAGAZINE_ISSUE 
DATABASE_QUERY_ENTRY_FAMITSU_MAGAZINE_RATING 
DATABASE_QUERY_ENTRY_RELEASEDATE_MONTH 
DATABASE_QUERY_ENTRY_RELEASEDATE_YEAR 
DATABASE_QUERY_ENTRY_MAX_USERS 

◆ database_status

Enumerator
DATABASE_STATUS_NONE 
DATABASE_STATUS_ITERATE 
DATABASE_STATUS_ITERATE_BEGIN 
DATABASE_STATUS_ITERATE_START 
DATABASE_STATUS_ITERATE_NEXT 
DATABASE_STATUS_FREE 

◆ database_type

Enumerator
DATABASE_TYPE_NONE 
DATABASE_TYPE_ITERATE 
DATABASE_TYPE_ITERATE_ARCHIVE 
DATABASE_TYPE_ITERATE_LUTRO 
DATABASE_TYPE_SERIAL_LOOKUP 
DATABASE_TYPE_CRC_LOOKUP 

Function Documentation

◆ bin_to_hex_alloc()

char* bin_to_hex_alloc ( const uint8_t data,
size_t  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ database_info_build_query_enum()

int database_info_build_query_enum ( char *  query,
size_t  len,
enum database_query_type  type,
const char *  path 
)
Here is the call graph for this function:

◆ database_info_dir_init()

database_info_handle_t* database_info_dir_init ( const char *  dir,
enum database_type  type,
retro_task_t task,
bool  show_hidden_files 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ database_info_file_init()

database_info_handle_t* database_info_file_init ( const char *  path,
enum database_type  type,
retro_task_t task 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ database_info_free()

void database_info_free ( database_info_handle_t handle)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ database_info_list_free()

void database_info_list_free ( database_info_list_t list)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ database_info_list_new()

database_info_list_t* database_info_list_new ( const char *  rdb_path,
const char *  query 
)
Here is the call graph for this function:
Here is the caller graph for this function: