Separate out our functionality for reading from the database into db/loaders.

This commit is contained in:
Joshua Strobl 2021-06-01 13:10:18 +03:00
parent 7c7fe35b49
commit a11ba1ec77
5 changed files with 290 additions and 248 deletions

View file

@ -58,43 +58,6 @@ void koto_library_set_path(
gchar * path
);
int process_artists(
void * data,
int num_columns,
char ** fields,
char ** column_names
);
int process_albums(
void * data,
int num_columns,
char ** fields,
char ** column_names
);
int process_playlists(
void * data,
int num_columns,
char ** fields,
char ** column_names
);
int process_playlists_tracks(
void * data,
int num_columns,
char ** fields,
char ** column_names
);
int process_tracks(
void * data,
int num_columns,
char ** fields,
char ** column_names
);
void read_from_db(KotoLibrary * self);
void start_indexing(KotoLibrary * self);
void index_folder(