[jsonapi] Add support for playlist folders

This commit is contained in:
chme
2020-02-23 11:40:39 +01:00
parent 248f82f3c8
commit 36ebf7d06c
3 changed files with 84 additions and 1 deletions

View File

@@ -227,6 +227,7 @@ struct media_file_info {
#define mfi_offsetof(field) offsetof(struct media_file_info, field)
/* Keep in sync with pl_type_label[] */
/* PL_SPECIAL value must be in sync with type value in Q_PL* in db_init.c */
enum pl_type {
PL_SPECIAL = 0,
@@ -236,6 +237,9 @@ enum pl_type {
PL_MAX,
};
const char *
db_pl_type_label(enum pl_type pl_type);
struct playlist_info {
uint32_t id; /* integer id (miid) */
char *title; /* playlist name as displayed in iTunes (minm) */