[db] Add cleanup to db_pl_delete(), remove db_pl_purge()

This commit is contained in:
ejurgensen
2020-03-21 22:19:13 +01:00
parent 2ee5f6d747
commit b19314e814
2 changed files with 26 additions and 40 deletions

View File

@@ -256,8 +256,8 @@ struct playlist_info {
char *virtual_path; /* virtual path of underlying playlist */
uint32_t parent_id; /* Id of parent playlist if the playlist is nested */
uint32_t directory_id; /* Id of directory */
char *query_order; /* order by clause if it is a smart playlist */
int32_t query_limit; /* limit if it is a smart playlist */
char *query_order; /* order by clause, used by e.g. a smart playlists */
int32_t query_limit; /* limit, used by e.g. smart playlists */
uint32_t media_kind;
uint32_t items; /* number of items (mimc) */
uint32_t streams; /* number of internet streams */
@@ -707,9 +707,6 @@ db_pl_delete(int id);
void
db_pl_delete_bypath(const char *path);
int
db_pl_purge_byid(int id);
void
db_pl_disable_bypath(const char *path, enum strip_type strip, uint32_t cookie);