(database_info.c) Make functions static

This commit is contained in:
twinaphex 2015-05-25 05:24:47 +02:00
parent b6883f43fc
commit da2489ad72
2 changed files with 3 additions and 10 deletions

View File

@ -116,7 +116,7 @@ static char *bin_to_hex_alloc(const uint8_t *data, size_t len)
return ret;
}
int database_cursor_iterate(libretrodb_cursor_t *cur,
static int database_cursor_iterate(libretrodb_cursor_t *cur,
database_info_t *db_info)
{
unsigned i;
@ -213,7 +213,7 @@ int database_cursor_iterate(libretrodb_cursor_t *cur,
return 0;
}
int database_cursor_open(libretrodb_t *db,
static int database_cursor_open(libretrodb_t *db,
libretrodb_cursor_t *cur, const char *path, const char *query)
{
const char *error = NULL;
@ -234,7 +234,7 @@ int database_cursor_open(libretrodb_t *db,
return 0;
}
int database_cursor_close(libretrodb_t *db, libretrodb_cursor_t *cur)
static int database_cursor_close(libretrodb_t *db, libretrodb_cursor_t *cur)
{
libretrodb_cursor_close(cur);
libretrodb_close(db);

View File

@ -93,13 +93,6 @@ database_info_list_t *database_info_list_new(const char *rdb_path,
void database_info_list_free(database_info_list_t *list);
int database_cursor_open(libretrodb_t *db,
libretrodb_cursor_t *cur, const char *path, const char *query);
int database_cursor_close(libretrodb_t *db, libretrodb_cursor_t *cur);
int database_cursor_iterate(libretrodb_cursor_t *cur, database_info_t *db_info);
database_info_handle_t *database_info_init(const char *dir,
enum database_type type);