mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Rename database_info_init to database_info_dir_init
This commit is contained in:
parent
bef584fa6f
commit
ba0e25dd88
@ -343,7 +343,7 @@ static int database_cursor_close(libretrodb_t *db, libretrodb_cursor_t *cur)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
database_info_handle_t *database_info_init(const char *dir,
|
database_info_handle_t *database_info_dir_init(const char *dir,
|
||||||
enum database_type type)
|
enum database_type type)
|
||||||
{
|
{
|
||||||
database_info_handle_t *db = (database_info_handle_t*)
|
database_info_handle_t *db = (database_info_handle_t*)
|
||||||
@ -377,7 +377,6 @@ void database_info_free(database_info_handle_t *db)
|
|||||||
string_list_free(db->list);
|
string_list_free(db->list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
database_info_list_t *database_info_list_new(
|
database_info_list_t *database_info_list_new(
|
||||||
const char *rdb_path, const char *query)
|
const char *rdb_path, const char *query)
|
||||||
{
|
{
|
||||||
|
@ -101,10 +101,10 @@ database_info_list_t *database_info_list_new(const char *rdb_path,
|
|||||||
|
|
||||||
void database_info_list_free(database_info_list_t *list);
|
void database_info_list_free(database_info_list_t *list);
|
||||||
|
|
||||||
database_info_handle_t *database_info_init(const char *dir,
|
database_info_handle_t *database_info_dir_init(const char *dir,
|
||||||
enum database_type type);
|
enum database_type type);
|
||||||
|
|
||||||
void database_info_free(database_info_handle_t *dbl);
|
void database_info_free(database_info_handle_t *handle);
|
||||||
|
|
||||||
int database_info_build_query(
|
int database_info_build_query(
|
||||||
char *query, size_t len, const char *label, const char *path);
|
char *query, size_t len, const char *label, const char *path);
|
||||||
|
@ -330,7 +330,7 @@ static int database_info_poll(db_handle_t *db)
|
|||||||
if (str_list->size > 1)
|
if (str_list->size > 1)
|
||||||
strlcpy(elem1, str_list->elems[1].data, sizeof(elem1));
|
strlcpy(elem1, str_list->elems[1].data, sizeof(elem1));
|
||||||
|
|
||||||
db->handle = database_info_init(elem0, DATABASE_TYPE_ITERATE);
|
db->handle = database_info_dir_init(elem0, DATABASE_TYPE_ITERATE);
|
||||||
|
|
||||||
string_list_free(str_list);
|
string_list_free(str_list);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user